aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/CastelProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-08 17:08:56 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-08 17:11:21 +1200
commit0edf8b90483691d77438748f203d3d03f034781e (patch)
tree2b75d8eb8e5b0772a3a920445d8b1ef2f412f450 /test/org/traccar/protocol/CastelProtocolDecoderTest.java
parent26760bedcb7c66da2d64d75e88e4030136f3e970 (diff)
downloadtrackermap-server-0edf8b90483691d77438748f203d3d03f034781e.tar.gz
trackermap-server-0edf8b90483691d77438748f203d3d03f034781e.tar.bz2
trackermap-server-0edf8b90483691d77438748f203d3d03f034781e.zip
Add a few Castel unit tests
Diffstat (limited to 'test/org/traccar/protocol/CastelProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/CastelProtocolDecoderTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CastelProtocolDecoderTest.java b/test/org/traccar/protocol/CastelProtocolDecoderTest.java
index feba9386e..a5b477ea5 100644
--- a/test/org/traccar/protocol/CastelProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CastelProtocolDecoderTest.java
@@ -12,6 +12,18 @@ public class CastelProtocolDecoderTest extends ProtocolTest {
CastelProtocolDecoder decoder = new CastelProtocolDecoder(new CastelProtocol());
+ verifyNothing(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "40405700043231334e583230313630303131373700000000004002c458ce572159ce57a9e2020082030000500c00000f0000000400036401240e0403023c000505210c210d210f21102101075b14030121330269430d0a"));
+
+ verifyNothing(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "40407800043231334e583230313630303131373700000000004004fa52ce574b53ce57cad1020041020000050c00000d0000000400036401240b0503001b042105210c210d210f211021112113211c211f212121232124212c212d213021312133213e2141214221452149214a214c214f215021384e0d0a"));
+
+ verifyNothing(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "4040a600043231334e583230313630303131373700000000004005fa52ce575053ce57cad102006b020000050c00000d0000000400036401240b050300001b042105210c210d210f211021112113211c211f212121232124212c212d213021312133213e2141214221452149214a214c214f215021015bd604301f500600000653000000bc0bffff78250000ff2d98642401000f8080e038000f0f0000000000000077b10d0a"));
+
+ verifyNothing(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "40404300043231334e583230313630303131373700000000004006fa52ce574e53ce57cad1020053020000050c00000d0000000400036401240b0503000000feec0d0a"));
+
verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"40403600043231334e583230313630303033343600000000004009ad31a457050810061a35b29bf80ae6da83180300320bbe32580d0a40403600043231334e583230313630303033343600000000004009ad31a457050810061a35b29bf80ae6da83180300320bbe32580d0a"));