diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-03-01 21:02:27 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-03-01 21:02:27 +1300 |
commit | 352a94ba7c3c9162afb4175e6c49515188544797 (patch) | |
tree | f6dd6730a9e95e4bd9185da72423a37758766792 /test/org/traccar/protocol | |
parent | f78f17199b8f00ac92e1a96c6c8b6981876020a2 (diff) | |
download | traccar-server-352a94ba7c3c9162afb4175e6c49515188544797.tar.gz traccar-server-352a94ba7c3c9162afb4175e6c49515188544797.tar.bz2 traccar-server-352a94ba7c3c9162afb4175e6c49515188544797.zip |
Improve GPS103 date decoding
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/Gps103ProtocolDecoderTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java index 24289822a..2e3929b28 100644 --- a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java @@ -13,13 +13,16 @@ public class Gps103ProtocolDecoderTest { decoder.setDataManager(new TestDataManager()); // Log on request - //assertNull(decoder.decode(null, null, "##,imei:359586015829802,A")); + assertNull(decoder.decode(null, null, "##,imei:359586015829802,A")); // Heartbeat package - //assertNull(decoder.decode(null, null, "359586015829802")); + assertNull(decoder.decode(null, null, "359586015829802")); // No GPS signal - //assertNull(decoder.decode(null, null, "imei:359586015829802,tracker,000000000,13554900601,L,;")); + assertNull(decoder.decode(null, null, "imei:359586015829802,tracker,000000000,13554900601,L,;")); + + assertNotNull(decoder.decode(null, null, + "imei:359710040656622,tracker,13/02/27 23:40,,F,125952.000,A,3450.9430,S,13828.6753,E,0.00,0")); assertNotNull(decoder.decode(null, null, "imei:353451047570260,tracker,1302110948,,F,144807.000,A,0805.6615,S,07859.9763,W,0.00,,")); |