diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 12:01:43 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 12:01:43 +1200 |
commit | d560f0cfdbbe9639e681bfeedd25d4de845d6161 (patch) | |
tree | 3845758ede6bafb9ee8d5fc2bda37de446ae9f34 /test/org/traccar/helper | |
parent | 8e24c10cdc42fdece70d420b206bb6062edb589c (diff) | |
download | traccar-server-d560f0cfdbbe9639e681bfeedd25d4de845d6161.tar.gz traccar-server-d560f0cfdbbe9639e681bfeedd25d4de845d6161.tar.bz2 traccar-server-d560f0cfdbbe9639e681bfeedd25d4de845d6161.zip |
Refactor model classes
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r-- | test/org/traccar/helper/DecoderVerifier.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/helper/DecoderVerifier.java b/test/org/traccar/helper/DecoderVerifier.java index d73d9d58f..f815861f5 100644 --- a/test/org/traccar/helper/DecoderVerifier.java +++ b/test/org/traccar/helper/DecoderVerifier.java @@ -11,9 +11,9 @@ public class DecoderVerifier { assertNotNull(position.getDeviceId()); - assertNotNull(position.getTime()); - assertTrue(position.getTime().after(new Date(946684800000L))); // 2000 year - assertTrue(position.getTime().getTime() < new Date().getTime() + 3600000); // 1 hour from now + assertNotNull(position.getFixTime()); + assertTrue(position.getFixTime().after(new Date(946684800000L))); // 2000 year + assertTrue(position.getFixTime().getTime() < new Date().getTime() + 3600000); // 1 hour from now assertNotNull(position.getValid()); |