aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-04 20:51:39 +0300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-04 20:52:10 +0300
commit6048f5af44d10553d76549d4c18149180f2c9113 (patch)
tree5bc8cfc18bb6b69ac5dad7b3b911c14f5b34cc4b /test/org/traccar/protocol
parent41668cae9763a523c775a8a998620fe286176c9e (diff)
downloadtrackermap-server-6048f5af44d10553d76549d4c18149180f2c9113.tar.gz
trackermap-server-6048f5af44d10553d76549d4c18149180f2c9113.tar.bz2
trackermap-server-6048f5af44d10553d76549d4c18149180f2c9113.zip
Add Castel protocol unit test case
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/CastelProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CastelProtocolDecoderTest.java b/test/org/traccar/protocol/CastelProtocolDecoderTest.java
index eafe80748..6df2fd387 100644
--- a/test/org/traccar/protocol/CastelProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CastelProtocolDecoderTest.java
@@ -12,6 +12,9 @@ public class CastelProtocolDecoderTest extends ProtocolTest {
CastelProtocolDecoder decoder = new CastelProtocolDecoder(new CastelProtocol());
+ verifyNothing(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "4040d400043535333133350000000000000000000000000000100196d499574bd899570000000000000000010000000000000000000000002410000000004944445f3231334730325f532056322e332e345f4e004944445f3231334730325f482056322e332e345f4e0032000110021003100410051006100710081009100a100b100c100d100e1011100111021103110411051106110711011202120312041201130213031301160216011701180218011b011c011d011e011f021f031f041f051f061f071f012102210126012701285b410d0a"));
+
verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"24243f00676e6768656636313031313132393030313734002001840d0000d2deb556020602100b35360456cf09e6ebac0200000000030000000001abc10d0a"));