aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-05-06 10:15:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-05-06 10:15:09 +1200
commit17744264e2938cf8c87346c175e458cd89a1f3c6 (patch)
tree3a6a336857f3a40c82bfa82fa2b1e193bd548696 /test
parent59f466092c9c875c2bbcb70a2a402aad0edd7639 (diff)
downloadtrackermap-server-17744264e2938cf8c87346c175e458cd89a1f3c6.tar.gz
trackermap-server-17744264e2938cf8c87346c175e458cd89a1f3c6.tar.bz2
trackermap-server-17744264e2938cf8c87346c175e458cd89a1f3c6.zip
Implement Teltonika codec 12
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java b/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
index afedf7489..7da61ffc2 100644
--- a/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TeltonikaProtocolDecoderTest.java
@@ -14,6 +14,9 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
"000F313233343536373839303132333435"));
verifyPositions(decoder, false, binary(
+ "00000000000000710c0106000000694154244d5347534e443d342c225354474234302c50522c3335363630313036303236353035302c313630343232313531372c313630343232313531382c432c2b3032332e332c302c2b3032332e312c302c4445414354492c302c4445414354492c302c312c30220d0a010000d8db"));
+
+ verifyPositions(decoder, false, binary(
"0000000000000055070450aa14320201f00150aa17f3031f42332a4c4193d68c008d00020901f00150aa1b6a031f423383f54193624f009d00000a01f00150aa1c230fc01a0000552b040164f400dd00f0010143100c0105000000050400006846"));
verifyPositions(decoder, binary(
@@ -36,13 +39,10 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest {
verifyPositions(decoder, binary(
"000000000000002b080100000140d4e3ec6e000cc661d01674a5e0fffc00000900000004020100f0000242322318000000000100007a04"));
-
- verifyNothing(decoder, binary(
+
+ verifyPositions(decoder, false, binary(
"000000000000002d0c01060000002523464d323d3236323033323736313732313339362c32363230332c30372e30322e30350d0a0100009a2e"));
-
- verifyNothing(decoder, binary(
- "000000000000000a0c0206000000020d0a0200006f4e"));
-
+
verifyPositions(decoder, binary(
"00000000000000a608010000013f14a1d1ce000f0eb790209a778000ab010c0500000000000000000100003390"));