aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Vt200ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-09 11:05:06 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2017-06-09 11:05:06 -0700
commit26438c9eec2a215687595fcfa6454c92c913a030 (patch)
tree12c6e0d515998d2d1d42722b6721c392d6d3ffea /test/org/traccar/protocol/Vt200ProtocolDecoderTest.java
parent16d989d95164fb942c748ec651b56e429080de00 (diff)
downloadtrackermap-server-26438c9eec2a215687595fcfa6454c92c913a030.tar.gz
trackermap-server-26438c9eec2a215687595fcfa6454c92c913a030.tar.bz2
trackermap-server-26438c9eec2a215687595fcfa6454c92c913a030.zip
Implement VT200/VT400 protocol
Diffstat (limited to 'test/org/traccar/protocol/Vt200ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Vt200ProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Vt200ProtocolDecoderTest.java b/test/org/traccar/protocol/Vt200ProtocolDecoderTest.java
new file mode 100644
index 000000000..e61c5f9f2
--- /dev/null
+++ b/test/org/traccar/protocol/Vt200ProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class Vt200ProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Vt200ProtocolDecoder decoder = new Vt200ProtocolDecoder(new Vt200Protocol());
+
+ verifyPosition(decoder, binary(
+ "28631037309456208400340102dc0906171616454415760201144494473f920a0c0000030500200100417c1f383a9d1090510000006a00007000000e00180ee129"));
+
+ verifyPosition(decoder, binary(
+ "28631037309456208400340102dc090617161654441577230114439597368c0a0c0000030500200100417c1baa349d3290510000006a00007000003d15004c11c629"));
+
+ }
+
+}