From 708077b1b5e43f8a37fd344f0c5dbc501614e151 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Jun 2020 22:53:28 -0700 Subject: Implement Portman protocol --- .../traccar/protocol/PortmanProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/PortmanProtocolDecoderTest.java (limited to 'src/test/java/org') 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")); + + } + +} -- cgit v1.2.3