aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-19 14:36:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-19 14:36:22 +1300
commit4ba1c3d923b3687df93030125c5efd34d1de002d (patch)
tree629e4be8af9eb0447def407b71426bee9a945a25 /test/org/traccar
parent86c0a49ceb012c36fe0bc30be63e27e7608d0f63 (diff)
downloadtraccar-server-4ba1c3d923b3687df93030125c5efd34d1de002d.tar.gz
traccar-server-4ba1c3d923b3687df93030125c5efd34d1de002d.tar.bz2
traccar-server-4ba1c3d923b3687df93030125c5efd34d1de002d.zip
Implement ARKNAV communication protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/ArknavProtocolDecoderTest.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/ArknavProtocolDecoderTest.java b/test/org/traccar/protocol/ArknavProtocolDecoderTest.java
new file mode 100644
index 000000000..841e5675b
--- /dev/null
+++ b/test/org/traccar/protocol/ArknavProtocolDecoderTest.java
@@ -0,0 +1,25 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class ArknavProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ ArknavProtocolDecoder decoder = new ArknavProtocolDecoder(new ArknavProtocol());
+
+ verifyPosition(decoder, text(
+ "358266016278447,05*827,000,L001,V,4821.6584,N,01053.8650,E,000.0,000.0,00.0,08:46:04 17-03-16,9.5A,D7,0,79,0,,,,"),
+ position("2016-03-17 08:46:04.000", false, 48.36097, 10.89775));
+
+ verifyPosition(decoder, text(
+ "123456789012345,05*850,000,L001,A,2459.3640,N,12125.2958,E,000.0,224.8,00.8,07:47:26 09-09-05,9.00,D3,0,C4,1,,,,"));
+
+ verifyPosition(decoder, text(
+ "123456789012345,05*850,000,L001,A,2459.3640,N,12125.2958,E,000.0,224.8,00.8,07:47:26 09-09-05,9.00,D3,0,C4,1,,,00000000,"));
+
+ }
+
+}