aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-17 22:53:28 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-17 22:53:28 -0700
commit708077b1b5e43f8a37fd344f0c5dbc501614e151 (patch)
tree2b66679fc2feeefa7ff557b6e41ebb89d23dbbbf /src/test/java/org/traccar/protocol
parentf43c8f976e9dc22847ce7afd827f587e47c89d73 (diff)
downloadtrackermap-server-708077b1b5e43f8a37fd344f0c5dbc501614e151.tar.gz
trackermap-server-708077b1b5e43f8a37fd344f0c5dbc501614e151.tar.bz2
trackermap-server-708077b1b5e43f8a37fd344f0c5dbc501614e151.zip
Implement Portman protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/PortmanProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/PortmanProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/PortmanProtocolDecoderTest.java
new file mode 100644
index 000000000..0b5dcf0cf
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/PortmanProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class PortmanProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ PortmanProtocolDecoder decoder = new PortmanProtocolDecoder(null);
+
+ verifyPosition(decoder, text(
+ "$PTMLA,355854050074633,A,200612153351,N2543.0681W10009.2974,0,190,NA,C9830000,NA,108,8,2.66,16,GNA"));
+
+ }
+
+}