aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 14:01:52 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 14:01:52 +1200
commit08cc944644cee5ce745a9faae0866b206c575407 (patch)
tree2fcf0e16f92236df3ba1f9fd8f537a5659b570cd /test
parent8bb68423f9a1e3c30f900e89f2016bfcc26a324b (diff)
downloadtrackermap-server-08cc944644cee5ce745a9faae0866b206c575407.tar.gz
trackermap-server-08cc944644cee5ce745a9faae0866b206c575407.tar.bz2
trackermap-server-08cc944644cee5ce745a9faae0866b206c575407.zip
Implement binary GL200 protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gl200BinaryProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gl200BinaryProtocolDecoderTest.java b/test/org/traccar/protocol/Gl200BinaryProtocolDecoderTest.java
new file mode 100644
index 000000000..42ccd4690
--- /dev/null
+++ b/test/org/traccar/protocol/Gl200BinaryProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class Gl200BinaryProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Gl200BinaryProtocolDecoder decoder = new Gl200BinaryProtocolDecoder(new Gl200Protocol());
+
+ verifyPosition(decoder, binary(
+ "2b4556540c00fc1fbf005c4501010108563254030003430564312a41090100000000003f007dff75a11a025c6a7807e1070a14041202680003189c1ac500000000000000000000000000000000000007e1070b041134054e5c6e0d0a"));
+
+ verifyNull(decoder, binary(
+ "2b41434b017f244501010108676231303000000000ffff07e1070b03112d054dfe030d0a"));
+
+ }
+
+}