aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-21 02:42:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-21 02:42:22 +1300
commitf3f388bf77d9e96dfe89bb3aa3679300af9d3b55 (patch)
tree20f452e5d681b7128f8fd395a1f997378aa52283
parent07c7d5c08583734ae70c5c9e6cec3332726b4200 (diff)
downloadtrackermap-server-f3f388bf77d9e96dfe89bb3aa3679300af9d3b55.tar.gz
trackermap-server-f3f388bf77d9e96dfe89bb3aa3679300af9d3b55.tar.bz2
trackermap-server-f3f388bf77d9e96dfe89bb3aa3679300af9d3b55.zip
Add GL200 unit test cases
-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 a09e11449..e699bcae2 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:GTFRI,210102,354524044925825,,1,1,1,29,2.8,0,133.7,-90.203063,32.265473,20170318005208,,,,,10800,4,20170318005208,0002$"));
+
+ verifyAttributes(decoder, text(
+ "+RESP:GTFRI,210102,354524044925825,,1,1,1,,,,,,,,310,410,51bc,ca1dae6,10800,1,20170318214333,0002$"));
+
+ verifyAttributes(decoder, text(
"+RESP:GTGSM,400201,862365030025161,STR,0234,0015,003a,62a2,16,,0234,0015,003a,56a2,14,,0234,0015,003a,062a,13,,0234,0015,003a,32d9,11,,0234,0015,003a,56a0,11,,,,,,,,0234,0015,003a,7489,17,,20170219200048,0033$"));
verifyAttributes(decoder, text(