From 352a94ba7c3c9162afb4175e6c49515188544797 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 1 Mar 2013 21:02:27 +1300 Subject: Improve GPS103 date decoding --- test/org/traccar/protocol/Gps103ProtocolDecoderTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/org/traccar') 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,,")); -- cgit v1.2.3