aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-10-31 23:06:39 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-10-31 23:06:39 +1300
commitcd7bea755719828a28d898861d93977d95183e6d (patch)
treedb1c8c0bee7475524d988535033ddd8f642ffe38 /test/org/traccar
parenta6730a508ed9672fcad825f30977b6157e33bb23 (diff)
downloadtrackermap-server-cd7bea755719828a28d898861d93977d95183e6d.tar.gz
trackermap-server-cd7bea755719828a28d898861d93977d95183e6d.tar.bz2
trackermap-server-cd7bea755719828a28d898861d93977d95183e6d.zip
Add GV55 test cases
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/Gl200ProtocolDecoderTest.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java b/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java
index 2fbbd3229..333c38d39 100644
--- a/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java
@@ -41,6 +41,39 @@ public class Gl200ProtocolDecoderTest {
assertNull(decoder.decode(null, null,
"+RESP:GTINF,359464030073766,8938003990320469804f,18,99,100,1,0,+2.00,0,20131018084015,00EE,0103090402"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTTOW,0F0100,135790246811220,,,10,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTDIS,0F0100,135790246811220,,,20,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTIOB,0F0100,135790246811220,,,10,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTGEO,0F0100,135790246811220,,,00,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTSPD,0F0100,135790246811220,,,00,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTSOS,0F0100,135790246811220,,,00,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTRTL,0F0100,135790246811220,,,00,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTDOG,0F0100,135790246811220,,,01,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTIGL,0F0100,135790246811220,,,00,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTHBM,0F0100,135790246811220,,,10,1,1,4.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
+
+ assertNotNull(decoder.decode(null, null,
+ "+RESP:GTHBM,0F0100,135790246811220,,,11,1,1,24.3,92,70.0,121.354335,31.222073,20090214013254,0460,0000,18d8,6141,00,2000.0,20090214093254,11F0$"));
}