BATCH-1107: apparently new Date(0L) is not 1970/01/01 on all operating systems!

This commit is contained in:
dsyer
2009-02-28 12:14:44 +00:00
parent 922d439db7
commit b0e19a9942

View File

@@ -64,7 +64,7 @@ public class PlaceholderTargetSourceTests extends ContextFactorySupport {
private Map<String, Object> map = Collections.singletonMap("foo.foo", (Object) "bar");
private Date date = new Date(0L);
private Date date = new Date(1L);
public Object getContext() {
return this;
@@ -167,7 +167,7 @@ public class PlaceholderTargetSourceTests extends ContextFactorySupport {
@Test
public void testGetDate() {
Node target = (Node) withDate.getTarget();
assertEquals(0L, target.getDate().getTime());
assertEquals(1L, target.getDate().getTime());
}
@Test