aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-19 10:26:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-06-19 10:26:07 +1200
commit355c1ad0cf0d53b3fd50d16033b3c55f574f82e5 (patch)
tree27bdcd3f9a14ec06822913346e38b60a0189133c /test
parentb3b0cd9d6f2d26cef2e64ef38e23203f1f3fa51a (diff)
downloadtrackermap-server-355c1ad0cf0d53b3fd50d16033b3c55f574f82e5.tar.gz
trackermap-server-355c1ad0cf0d53b3fd50d16033b3c55f574f82e5.tar.bz2
trackermap-server-355c1ad0cf0d53b3fd50d16033b3c55f574f82e5.zip
Add a few GT02 unit test cases
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gt02ProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
index c094c75cc..3cfa0ea4a 100644
--- a/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
@@ -11,6 +11,15 @@ public class Gt02ProtocolDecoderTest extends ProtocolTest {
Gt02ProtocolDecoder decoder = new Gt02ProtocolDecoder(new Gt02Protocol());
verifyAttributes(decoder, binary(
+ "68680f0504035889905831401700df1a00000d0a"));
+
+ verifyAttributes(decoder, binary(
+ "6868130504035889905831401700001a040423261e290d0a"));
+
+ verifyAttributes(decoder, binary(
+ "68681905040358899058314017000e1a010a2623211b2722252329000d0a"));
+
+ verifyAttributes(decoder, binary(
"68681a060303588990500037252de91a010a171a191b171915191e10000d0a"));
verifyPosition(decoder, binary(