summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-05 11:51:23 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-08-06 12:19:10 +0200
commite8059e4d37472c7db23e4522fcca0a48338b2f5e (patch)
treeaeecdc60ea7b1d8751fe85252a84437f6679647e /qadevOOo
parentfb0a2199b6baf1166f05b2f19098bc40e677b540 (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.java6
-rw-r--r--qadevOOo/tests/java/mod/_forms/ODateModel.java2
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";