aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-05 08:06:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-05 08:06:57 +1300
commita9260f9e470add52f1fe3df35ea93e0d547c3fe7 (patch)
tree7f144de075e3e1a261b0fd3eb27251935e4aae72 /test/org/traccar
parent2342ccbce2681603057d183f3b15bd9f40bffafc (diff)
downloadtraccar-server-a9260f9e470add52f1fe3df35ea93e0d547c3fe7.tar.gz
traccar-server-a9260f9e470add52f1fe3df35ea93e0d547c3fe7.tar.bz2
traccar-server-a9260f9e470add52f1fe3df35ea93e0d547c3fe7.zip
Add Granit unit test case
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/GranitProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GranitProtocolDecoderTest.java b/test/org/traccar/protocol/GranitProtocolDecoderTest.java
index 1e6a5e611..1fea1d98c 100644
--- a/test/org/traccar/protocol/GranitProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/GranitProtocolDecoderTest.java
@@ -12,6 +12,9 @@ public class GranitProtocolDecoderTest extends ProtocolTest {
GranitProtocolDecoder decoder = new GranitProtocolDecoder(new GranitProtocol());
+ verifyPositions(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "2b444441547e84003b6d0401b10e9217445800b051398f35d34a313b000072000000010b000080b051398f35d34a313b000072000000010b0000f0b051390f33314c303b900371000000010b0000f0b05139cd31e54c2f3cd0016f000000010b0000f0b051396831204d303d950071000000010b0000f0b051397530aa4d323c610171000000010b00000a002a30420d0a"));
+
verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"2b525243427e1a003e2934757c57b8b03c38d279b4e61e9bd7006b000000001c00002a4533"));
@@ -28,6 +31,7 @@ public class GranitProtocolDecoderTest extends ProtocolTest {
//ERROR WRONG CHECKSUM_1
verifyAttributes(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"4552524f522057524f4e4720434845434b53554d5f31"));
+
}
}