diff options
author | Vitaly Takmazov | 2016-01-16 19:03:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-16 19:03:54 +0300 |
commit | 1a39696a6eaf4ea41447e4426ccdcfacec657554 (patch) | |
tree | a3cf251f1f7a32663efdd3bbb16d5a7e0865b6ad /src | |
parent | 9a50ad8dea5e9ebc5eb1c5efb19aa7a784283e14 (diff) |
update test for date and time
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/com/juick/JsonTests.java | 4 |
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(); } |