aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-23 10:54:00 +1000
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-23 17:18:10 +1000
commit083dc5075b005e42022eb995e4dce303fbfb38c6 (patch)
tree0aade0368fd57340db09c789c83f784edfaa21eb /test
parente911fa2c7e4138b1edaa95ab603617660cea0462 (diff)
downloadtraccar-server-083dc5075b005e42022eb995e4dce303fbfb38c6.tar.gz
traccar-server-083dc5075b005e42022eb995e4dce303fbfb38c6.tar.bz2
traccar-server-083dc5075b005e42022eb995e4dce303fbfb38c6.zip
Implement Hunter Pro protocol (fix #2232)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/HunterProProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
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"));
+
+ }
+
+}