diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-05 11:51:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-05 11:57:23 +0200 |
commit | 8dbfb3bfb1b06abfdc99d483f1a9aa948d6efa6e (patch) | |
tree | a010b013b8f6e9b1cf8b7a2abc5d673015380922 /qadevOOo | |
parent | e40f32162fa85c0a99e4bc99aa98a4036b83af09 (diff) |
More little fixes for JunitTest_forms_unoapi
...needed since 8ee69b0ba13f74d1515fac71df92947eb6328ab1 "fdo#67235 adapt form
control code to time nanosecond API change, step 3."
Change-Id: If0fc8109d6da56c8e8df181ae0b35a4d9b34e767
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java | 6 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/ODateModel.java | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java b/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java index 1433a7a749dd..3580a021203d 100644 --- a/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java +++ b/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java @@ -110,12 +110,16 @@ public class _XValidatableFormComponent extends MultiMethodTest if ( testPropsNames[i].equals("Value") - || testPropsNames[i].equals("Time") || testPropsNames[i].equals("EffectiveValue") ) { oldValue = new Integer(10); } + else if (testPropsNames[i].equals("Time")) + { + oldValue = new com.sun.star.util.Time( + 10, (short) 10, (short) 10, (short) 10, false); + } Object newValue = ValueChanger.changePValue(oldValue); gValues[i] = newValue; diff --git a/qadevOOo/tests/java/mod/_forms/ODateModel.java b/qadevOOo/tests/java/mod/_forms/ODateModel.java index f5c74458e91f..79d24c14cba2 100644 --- a/qadevOOo/tests/java/mod/_forms/ODateModel.java +++ b/qadevOOo/tests/java/mod/_forms/ODateModel.java @@ -140,7 +140,7 @@ public class ODateModel extends GenericModelTest { NamedValue Date = new NamedValue(); Date.Name = "Date"; - Date.Value = new Integer(DBTools.TST_DATE); + Date.Value = new com.sun.star.util.Date(); super.m_propertiesToSet.add(Date); super.m_LCShape_Type = "FixedText"; |