aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-08-18 20:42:37 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-08-18 20:42:37 -0700
commit4f0e955b7bfec804dd64ded8c3801bbc9f9a3445 (patch)
tree8d0e62e0baaac0474e22cc08d5ee1a1bbae005b9 /src/test
parent685eaa95a6633fc840bae47a7ced290f37dbd4fb (diff)
downloadtrackermap-server-4f0e955b7bfec804dd64ded8c3801bbc9f9a3445.tar.gz
trackermap-server-4f0e955b7bfec804dd64ded8c3801bbc9f9a3445.tar.bz2
trackermap-server-4f0e955b7bfec804dd64ded8c3801bbc9f9a3445.zip
Additional Xirgo attributes
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/Xt2400ProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Xt2400ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Xt2400ProtocolDecoderTest.java
index f4a78b5bd..6d49f2516 100644
--- a/src/test/java/org/traccar/protocol/Xt2400ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Xt2400ProtocolDecoderTest.java
@@ -10,6 +10,11 @@ public class Xt2400ProtocolDecoderTest extends ProtocolTest {
Xt2400ProtocolDecoder decoder = new Xt2400ProtocolDecoder(null);
+ decoder.setConfig("\n::wycfg pcr[1] 012801030405060708090a1213c8545657585a656e7d2cd055595d5e71797a7b7c7e7f80818285866b\n");
+
+ verifyPosition(decoder, binary(
+ "010ae85be10801a05d52d590030b12d1f9330be9290a0000ff10008b00000000000000000000000000000000000000000000000000000000000000000000000000003839333032363930323031303036363039373733000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000"));
+
decoder.setConfig("\n:wycfg pcr[0] 001001030406070809570a13121714100565\n");
verifyPosition(decoder, binary(