aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-21 11:29:05 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-21 11:29:05 -0700
commit0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c (patch)
tree3e80216f14e8b4c0a07099609073f096fdc5f27e /src/test/java/org/traccar/protocol
parent94dad7a70fe4d8b733f773820743c61891bb771d (diff)
downloadtrackermap-server-0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c.tar.gz
trackermap-server-0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c.tar.bz2
trackermap-server-0e2a2b1b6ba851d599c9c8f53b3775eb15378b7c.zip
Implement PT215 protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java
new file mode 100644
index 000000000..59574aeee
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/Pt215ProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class Pt215ProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Pt215ProtocolDecoder decoder = new Pt215ProtocolDecoder(null);
+
+ verifyNull(decoder, binary(
+ "58580d010359339075435451010d0a"));
+
+ verifyNull(decoder, binary(
+ "585801080d0a"));
+
+ }
+
+}