aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-12 09:14:21 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-12 09:14:21 +0100
commit883b7e6d2ceacbdcc85415c5ff87810c5acc0e8f (patch)
tree834f4c40b654b9eaf7c484205abab923365baf5f /src
parent17419dac386a091c57c190ee772279528336e218 (diff)
downloadesper-testing-883b7e6d2ceacbdcc85415c5ff87810c5acc0e8f.tar.gz
esper-testing-883b7e6d2ceacbdcc85415c5ff87810c5acc0e8f.tar.bz2
esper-testing-883b7e6d2ceacbdcc85415c5ff87810c5acc0e8f.tar.xz
esper-testing-883b7e6d2ceacbdcc85415c5ff87810c5acc0e8f.zip
o Timezone safing a test.
Diffstat (limited to 'src')
-rw-r--r--src/test/java/io/trygvis/esper/testing/nexus/TestXmlParsing.java3
1 files changed, 2 insertions, 1 deletions
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);