aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-03-01 21:02:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-03-01 21:02:27 +1300
commit352a94ba7c3c9162afb4175e6c49515188544797 (patch)
treef6dd6730a9e95e4bd9185da72423a37758766792 /test
parentf78f17199b8f00ac92e1a96c6c8b6981876020a2 (diff)
downloadtrackermap-server-352a94ba7c3c9162afb4175e6c49515188544797.tar.gz
trackermap-server-352a94ba7c3c9162afb4175e6c49515188544797.tar.bz2
trackermap-server-352a94ba7c3c9162afb4175e6c49515188544797.zip
Improve GPS103 date decoding
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gps103ProtocolDecoderTest.java9
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,,"));