aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-24 22:46:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-02-24 22:46:41 +1300
commit55f2a2704e48636ba4b25e30d6a5f7bc6542920e (patch)
tree8c5451391040e13d42d05629cbce18a1bb91b5c8 /test/org/traccar/protocol
parent99cc473979209204a2f618539abad2cfbadf3c82 (diff)
downloadtrackermap-server-55f2a2704e48636ba4b25e30d6a5f7bc6542920e.tar.gz
trackermap-server-55f2a2704e48636ba4b25e30d6a5f7bc6542920e.tar.bz2
trackermap-server-55f2a2704e48636ba4b25e30d6a5f7bc6542920e.zip
Add Castel unit tests
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/CastelProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CastelProtocolDecoderTest.java b/test/org/traccar/protocol/CastelProtocolDecoderTest.java
index a7d83f62b..2dccf4a0a 100644
--- a/test/org/traccar/protocol/CastelProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CastelProtocolDecoderTest.java
@@ -12,6 +12,12 @@ public class CastelProtocolDecoderTest extends ProtocolTest {
CastelProtocolDecoder decoder = new CastelProtocolDecoder(new CastelProtocol());
+ verifyAttributes(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "404057000431303031313132353239393837000000000000004002C1F06952F0F169529C9111000000000069830000470000000400036401014C01030078000505210C210D210F21102101073BE8030064280AEB930D0A"));
+
+ verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN,
+ "40405f000536303331353030303335313200000000000000004001040212102a2f72b29302a0af8512b40787018e000000000043e4ae000000007ca0f7224d5049503632305f56312e312e30004d5049502d3632302056322e300072140d0a"));
+
verifyPosition(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"24245000363137313135313243333133360000000000000040011b011207133ac49a390464514a15000000008e480c00000917000000000000ffafffaf00010000ffff7800ffffffffffffff003c0d0a"));