aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-07 05:35:45 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-07 13:36:51 +1300
commitbf0bf92ddadee86fc92841fe6087e5a7910bc0a2 (patch)
treebf80c5c3154f536d846100a82665b748f72d5802 /test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
parent453bd2ed647d66725790b35eaab4932bf86b3ad1 (diff)
downloadtrackermap-server-bf0bf92ddadee86fc92841fe6087e5a7910bc0a2.tar.gz
trackermap-server-bf0bf92ddadee86fc92841fe6087e5a7910bc0a2.tar.bz2
trackermap-server-bf0bf92ddadee86fc92841fe6087e5a7910bc0a2.zip
Support short Fifotrack format
Diffstat (limited to 'test/org/traccar/protocol/FifotrackProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/FifotrackProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java b/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
index 60f22a91a..fa45516a2 100644
--- a/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/FifotrackProtocolDecoderTest.java
@@ -11,6 +11,12 @@ public class FifotrackProtocolDecoderTest extends ProtocolTest {
FifotrackProtocolDecoder decoder = new FifotrackProtocolDecoder(new FifotrackProtocol());
verifyPosition(decoder, text(
+ "$$103,866104023179743,5,A00,,161006192841,A,54.738791,25.271918,0,342,200,0,4265,0000,0,,246|1|65|96DB,9C4|0*75"));
+
+ verifyPosition(decoder, text(
+ "$$103,866104023179743,4,A00,,161006192810,V,54.738791,25.271918,0,158,122,0,4235,0000,0,,246|1|65|96DB,9C5|0*69"));
+
+ 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"));
}