aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-15 16:05:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-15 16:05:10 +1300
commit27a155908f6f460dde1a52c949cea7ee6625976a (patch)
treef112fd451c685b1fba4e506ceb9f5ffcd5bdebdc /test
parent9863a0a0c9e3f796679f0fda3ab1048a3bac2475 (diff)
downloadtrackermap-server-27a155908f6f460dde1a52c949cea7ee6625976a.tar.gz
trackermap-server-27a155908f6f460dde1a52c949cea7ee6625976a.tar.bz2
trackermap-server-27a155908f6f460dde1a52c949cea7ee6625976a.zip
Support DM G50 fixed 64 byte messages
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/DmtProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/DmtProtocolDecoderTest.java b/test/org/traccar/protocol/DmtProtocolDecoderTest.java
index a83dcafe2..2e386c48e 100644
--- a/test/org/traccar/protocol/DmtProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/DmtProtocolDecoderTest.java
@@ -15,6 +15,12 @@ public class DmtProtocolDecoderTest extends ProtocolTest {
verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"0255003300001b00003335333232393032373533393235310038393931353030303030303030313330343539340000000403041910780603"));
+ verifyPositions(decoder, false, binary(ByteOrder.LITTLE_ENDIAN,
+ "02551040000eaca40d00d2b8e562c51f9912f39a6bee00007e420091090903070100000000008b1065360000000000007fd401c4fcf2feffffffffffffffffee0000003f1b"));
+
+ verifyPositions(decoder, false, binary(ByteOrder.LITTLE_ENDIAN,
+ "02551080000eada40d00d2b8e58ac51f9912f39a6bee00007e42007e090709070000000000009010fc330000000000007fc201a0fc04ffffffffffffffffffe5000000c5d00eaea40d00d2b8e58ac51f9912f39a6bee00007e42007e09070207000000000000851008340000000000007fc201a0fc04ff0000000000000000e5000000c96d"));
+
verifyNull(decoder, binary(ByteOrder.LITTLE_ENDIAN,
"025500310038f90100333533333233303831363639373330003839363130313835303031383234383434363330002202010900000000"));