From 883b7e6d2ceacbdcc85415c5ff87810c5acc0e8f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 12 Jan 2013 09:14:21 +0100 Subject: o Timezone safing a test. --- src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/java') diff --git a/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java b/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java index 97c3946..a59b2ef 100644 --- a/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java +++ b/src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java @@ -6,6 +6,7 @@ import static io.trygvis.esper.testing.nexus.ArtifactXml.repositoryFilter; import io.trygvis.esper.testing.util.*; import junit.framework.*; import org.jdom2.*; +import org.joda.time.*; import java.io.*; import java.util.*; @@ -57,7 +58,7 @@ public class TestXmlParsing extends TestCase { NewSnapshotEvent e = (NewSnapshotEvent) NexusFeedParser.parseEvent(items.get(0)).some(); NexusEvent event = e.event; - assertEquals("2012-12-04T13:26:40.000+01:00", event.date.toString()); + assertEquals("2012-12-04T12:26:40.000Z", event.date.withZone(DateTimeZone.UTC).toString()); assertEquals("developer", event.creator); assertEquals("org.example", event.artifactId.groupId); assertEquals("example", event.artifactId.artifactId); -- cgit v1.2.3