the test data did not make much sense before
authorn.hoffmann <n.hoffmann@localhost>
Thu, 16 Dec 2010 18:57:53 +0000 (18:57 +0000)
committern.hoffmann <n.hoffmann@localhost>
Thu, 16 Dec 2010 18:57:53 +0000 (18:57 +0000)
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/TimePeriodTest.java

index 4e2bd8b5f4d7a8f0a9bbe386b1dacba9dd9a1f29..959800fea715d1c190b03651fe738e695b0d2868 100644 (file)
@@ -179,7 +179,7 @@ public class TimePeriodTest {
                Assert.assertNotNull("Time period must be created",tp);\r
        }\r
 \r
-       @Ignore\r
+       //@Ignore\r
        @Test\r
        public void testSetStart(){\r
                Partial startDate = new Partial().with(DateTimeFieldType.year(), 2010)\r
@@ -189,9 +189,9 @@ public class TimePeriodTest {
                \r
                String startString = tp.toString();\r
                \r
-               Partial partial = new Partial().with(DateTimeFieldType.year(), 2010)\r
+               Partial partial = new Partial().with(DateTimeFieldType.year(), 1984)\r
                                .with(DateTimeFieldType.monthOfYear(), 12)\r
-                               .with(DateTimeFieldType.dayOfMonth(), 15);\r
+                               .with(DateTimeFieldType.dayOfMonth(), 14);\r
                \r
                tp.setStart(partial);\r
                String changedString = tp.toString();\r
@@ -199,7 +199,7 @@ public class TimePeriodTest {
                Assert.assertTrue("Setting the partial should change the string representation of the TimePeriod", !startString.equals(changedString));\r
                \r
                //\r
-               tp = TimePeriod.parseString("15.12.2010");\r
+               tp = TimePeriod.parseString("15.12.1730");\r
                \r
                startString = tp.toString();\r
                tp.setStart(partial);\r