diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java index 871c3d116e9a..fc21d22263c5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java +++ b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java @@ -82,6 +82,7 @@ public class _TableAutoFormatField extends MultiPropertyTest { */ public void _CharFontName() { testProperty("CharFontName", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return "Courier".equals(old) ? "Times New Roman" : "Courier" ; } @@ -95,6 +96,7 @@ public class _TableAutoFormatField extends MultiPropertyTest { */ public void _CharLocale() { testProperty("CharLocale", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return old == null || ((Locale)old).Language == "de" ? new Locale("es", "ES", "") : new Locale("de", "DE", "") ; @@ -108,6 +110,7 @@ public class _TableAutoFormatField extends MultiPropertyTest { */ public void _ShadowFormat() { testProperty("ShadowFormat", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return old == null ? new com.sun.star.table.ShadowFormat() : super.getNewValue(p, old) ; |