summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
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";