From 083dc5075b005e42022eb995e4dce303fbfb38c6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 23 Aug 2016 10:54:00 +1000 Subject: Implement Hunter Pro protocol (fix #2232) --- .../traccar/protocol/HunterProProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/org/traccar/protocol/HunterProProtocolDecoderTest.java (limited to 'test/org') diff --git a/test/org/traccar/protocol/HunterProProtocolDecoderTest.java b/test/org/traccar/protocol/HunterProProtocolDecoderTest.java new file mode 100644 index 000000000..b90ff4624 --- /dev/null +++ b/test/org/traccar/protocol/HunterProProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class HunterProProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + HunterProProtocolDecoder decoder = new HunterProProtocolDecoder(new HunterProProtocol()); + + verifyPosition(decoder, text( + ">0002<$GPRMC,170559.000,A,0328.3045,N,07630.0735,W,0.73,266.16,200816,,,A77, s000078015180\",0MD")); + + } + +} -- cgit v1.2.3