aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-30 03:16:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-30 03:16:55 +1300
commite17b26a28a23af4d8a2c7e33d94105a22d566193 (patch)
tree36328346a20278362cea60b4aed2b6296ee6bd11 /test
parent3593df6595cb1af169098ea2e7594fc3480648d0 (diff)
downloadtrackermap-server-e17b26a28a23af4d8a2c7e33d94105a22d566193.tar.gz
trackermap-server-e17b26a28a23af4d8a2c7e33d94105a22d566193.tar.bz2
trackermap-server-e17b26a28a23af4d8a2c7e33d94105a22d566193.zip
Add GL200 unit test cases
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gl200ProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java b/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java
index fa8373898..c493d5172 100644
--- a/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java
@@ -11,6 +11,12 @@ public class Gl200ProtocolDecoderTest extends ProtocolTest {
Gl200ProtocolDecoder decoder = new Gl200ProtocolDecoder(new Gl200Protocol());
verifyAttributes(decoder, text(
+ "+RESP:GTSTR,400201,862365030034957,GL500,0,0,2,23.1,5,2,0.2,0,36.0,0.623089,51.582744,20161129174625,0234,0015,03C3,3550,,,,20161129174625,0026$"));
+
+ verifyNothing(decoder, text(
+ "+RESP:GTSTR,400201,862365030034957,GL500,0,1,2,21.8,100,0,,,,,,,0234,0015,03C3,3550,,,,20161129174009,0023$"));
+
+ verifyAttributes(decoder, text(
"+RESP:GTINF,210102,A10000499AEF9B,,41,,0,0,0,15.0,9,3.87,0,1,1,0,0,20161101140211,72,,,,,20161101140211,00A3$"));
verifyAttributes(decoder, text(