aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 16:56:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 16:56:45 +1200
commit99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4 (patch)
tree49963bb0f56146d9daee49aa332c81fa72ee57ce /test/org/traccar
parent9587c1671abcb1d255bc9715c3b254006b761152 (diff)
downloadtraccar-server-99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4.tar.gz
traccar-server-99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4.tar.bz2
traccar-server-99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4.zip
Implement Anytrek VT1611 protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/AnytrekProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/AnytrekProtocolDecoderTest.java b/test/org/traccar/protocol/AnytrekProtocolDecoderTest.java
new file mode 100644
index 000000000..dbb4d46d6
--- /dev/null
+++ b/test/org/traccar/protocol/AnytrekProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class AnytrekProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ AnytrekProtocolDecoder decoder = new AnytrekProtocolDecoder(new AnytrekProtocol());
+
+ verifyPosition(decoder, binary(
+ "78783500300086428703204121160085015111050C0A0D20C6FD24A102FF8EAC0C01001404000000FFFFFFFF131702210000000000000000000D0A"));
+
+ verifyPosition(decoder, binary(
+ "787835003000867279033457792c009801001209080a3408c81b2a7d0305b88b0c00001ccb0000000f00000002b90174f30b000000000000000d0a"));
+
+ }
+
+}