diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java index 152350dde606..b9c2d926e6eb 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java @@ -43,6 +43,7 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { * Redefined method returns value, that differs from property value. */ protected PropertyTester ColorTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { if (util.ValueComparer.equalValue(oldValue, new Integer(17))) return new Integer(25); @@ -57,6 +58,7 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { */ public void _BackgroundColor() { testProperty("BackgroundColor", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Integer(1234) : null ; } @@ -69,6 +71,7 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { */ public void _Tabstop() { testProperty("Tabstop", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { if (utils.isVoid(old)) return new Boolean(true) ; else return null ; @@ -82,6 +85,7 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { */ public void _TextColor() { testProperty("TextColor", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { if (utils.isVoid(old)) return new Integer(12345) ; else return null ; |