aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-16 19:03:54 +0300
committerGravatar Vitaly Takmazov2016-01-16 19:03:54 +0300
commit1a39696a6eaf4ea41447e4426ccdcfacec657554 (patch)
treea3cf251f1f7a32663efdd3bbb16d5a7e0865b6ad /src/test
parent9a50ad8dea5e9ebc5eb1c5efb19aa7a784283e14 (diff)
update test for date and time
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/JsonTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/juick/JsonTests.java b/src/test/java/com/juick/JsonTests.java
index 5d78a2d6..890360c1 100644
--- a/src/test/java/com/juick/JsonTests.java
+++ b/src/test/java/com/juick/JsonTests.java
@@ -18,10 +18,10 @@ public class JsonTests {
Message msg = new Message();
SimpleDateFormat df= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
- msg.setDate(df.parse("2015-01-01 00:00:00"));
+ msg.setDate(df.parse("2015-01-01 05:02:10"));
MessageSerializer serializer = new MessageSerializer();
String json = serializer.serialize(msg).toString();
- assertEquals("{\"timestamp\":\"2015-01-01 00:00:00\"}", json);
+ assertEquals("{\"timestamp\":\"2015-01-01 05:02:10\"}", json);
} catch (ParseException e) {
e.printStackTrace();
}