diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java index 4f97111aaa2c..49c1377e4012 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java @@ -51,6 +51,7 @@ public class _UnoControlListBoxModel 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 ; } @@ -63,6 +64,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { */ public void _BorderColor() { testProperty("BorderColor", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Integer(1234) : null ; } @@ -75,6 +77,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { */ public void _TextColor() { testProperty("TextColor", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Integer(4321) : null ; } @@ -87,6 +90,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { */ public void _Tabstop() { testProperty("Tabstop", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Boolean(true) : null ; } @@ -97,6 +101,7 @@ public class _UnoControlListBoxModel 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); |