aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-09 17:47:56 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-09 17:47:56 -0800
commit36a49a88ea44da16b57e5256dc4c91c2e90a3792 (patch)
tree4ed2aa79e19fb613974ac217d7c959ac76730692 /src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java
parentbc4a46a01e8d7c3e6238ba07f96eb67adc75c116 (diff)
downloadtrackermap-server-36a49a88ea44da16b57e5256dc4c91c2e90a3792.tar.gz
trackermap-server-36a49a88ea44da16b57e5256dc4c91c2e90a3792.tar.bz2
trackermap-server-36a49a88ea44da16b57e5256dc4c91c2e90a3792.zip
Implement Topin protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java
new file mode 100644
index 000000000..2fb734462
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java
@@ -0,0 +1,24 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class TopinProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ TopinProtocolDecoder decoder = new TopinProtocolDecoder(null);
+
+ verifyNull(decoder, binary(
+ "78780d0103593390754169634d0d0a"));
+
+ verifyPosition(decoder, binary(
+ "787812100a03170f32179c026b3f3e0c22ad651f34600d0a"));
+
+ verifyAttributes(decoder, binary(
+ "78780713514d0819640d0a"));
+
+ }
+
+}