diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-11-09 20:48:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-11-09 20:48:39 +1300 |
commit | fa260aad4a99772e1b116474dd702849f6ee5727 (patch) | |
tree | 2d2f2b79002697177e6f45c006a4737b23e01385 /test/org/traccar/protocol/Gl100ProtocolDecoderTest.java | |
parent | f65d8164e673c5a1e2aa4d02aee8e269b19c4900 (diff) | |
download | trackermap-server-fa260aad4a99772e1b116474dd702849f6ee5727.tar.gz trackermap-server-fa260aad4a99772e1b116474dd702849f6ee5727.tar.bz2 trackermap-server-fa260aad4a99772e1b116474dd702849f6ee5727.zip |
Update gl100 and gl200
Diffstat (limited to 'test/org/traccar/protocol/Gl100ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/Gl100ProtocolDecoderTest.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java b/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java index 6cfa34501..b7aaef5b8 100644 --- a/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java @@ -1,5 +1,6 @@ package org.traccar.protocol; +import static org.junit.Assert.assertNull; import org.traccar.helper.TestDataManager; import static org.traccar.helper.DecoderVerifier.verify; import org.junit.Test; @@ -12,6 +13,9 @@ public class Gl100ProtocolDecoderTest { Gl100ProtocolDecoder decoder = new Gl100ProtocolDecoder(null); decoder.setDataManager(new TestDataManager()); + assertNull(decoder.decode(null, null, + "AT+GTHBD=HeartBeat,359231030000010,20090101000000,11F0,0102120204")); + verify(decoder.decode(null, null, "+RESP:GTSOS,359231030000010,0,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204")); @@ -33,8 +37,9 @@ public class Gl100ProtocolDecoderTest { verify(decoder.decode(null, null, "+RESP:GTTRI,359231030000010,2,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,0,0,1,-3.6,145,30.0,2,121.354442,31.221940,20090101000100,0460,0000,18d8,6141,00,11F0,0102120204")); - //verify(decoder.decode(null, null, - // "AT+GTHBD=HeartBeat,359231030000010,20090101000000,11F0,0102120204")); + verify(decoder.decode(null, null, + "+RESP:GTTRI,359464030073766,1,0,0,0,1.7,254,-27.8,3,30.474475,50.488383,20131107155511,0255,0003,6995,4761,00,0071,0103090402")); + } } |