aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-12-15 15:56:40 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-12-15 15:56:40 -0800
commit375e67498f9b373bf08a234285f739794a33716c (patch)
tree117c9b7d5ddf265cc6230b2029a3bde6ab584a27 /src/test/java/org/traccar/protocol
parent60d2af43acf8e3e380a0fe0cdc524db65c6c0e12 (diff)
downloadtraccar-server-375e67498f9b373bf08a234285f739794a33716c.tar.gz
traccar-server-375e67498f9b373bf08a234285f739794a33716c.tar.bz2
traccar-server-375e67498f9b373bf08a234285f739794a33716c.zip
Implement VNET TG102 protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/VnetProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/VnetProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/VnetProtocolDecoderTest.java
new file mode 100644
index 000000000..3281aae34
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/VnetProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class VnetProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ VnetProtocolDecoder decoder = new VnetProtocolDecoder(null);
+
+ verifyNull(decoder, binary(
+ "24240000140029111909062986818303379282604c452e322e30302ea32b020f0000d3552323"));
+
+ verifyPosition(decoder, binary(
+ "242433001200290615174213211489861061060690070B0001020304700005001E382323"));
+
+ }
+
+}