aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-30 06:42:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-30 06:42:42 +1300
commitf07681fd79bd44a034cb424cb70861d84521968b (patch)
tree94806f7b969e6294ba4c2fff0b7f072062bf603c /test
parent4239df1f79ba8a27df8ddd934eb2e4c26d850899 (diff)
downloadtrackermap-server-f07681fd79bd44a034cb424cb70861d84521968b.tar.gz
trackermap-server-f07681fd79bd44a034cb424cb70861d84521968b.tar.bz2
trackermap-server-f07681fd79bd44a034cb424cb70861d84521968b.zip
Implement Fifotrack protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/FifotrackProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java b/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
new file mode 100644
index 000000000..60f22a91a
--- /dev/null
+++ b/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class FifotrackProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ FifotrackProtocolDecoder decoder = new FifotrackProtocolDecoder(new FifotrackProtocol());
+
+ verifyPosition(decoder, text(
+ "$$135,866104023192332,29,A01,,160606093046,A,22.546430,114.079730,0,186,181,0,415322,0000,02,2,460|0|27B3|EA7,A2F|3B9|3|0,940C7E,31.76|30.98*46"));
+
+ }
+
+}