diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-30 06:42:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-30 06:42:42 +1300 |
commit | f07681fd79bd44a034cb424cb70861d84521968b (patch) | |
tree | 94806f7b969e6294ba4c2fff0b7f072062bf603c /test/org | |
parent | 4239df1f79ba8a27df8ddd934eb2e4c26d850899 (diff) | |
download | trackermap-server-f07681fd79bd44a034cb424cb70861d84521968b.tar.gz trackermap-server-f07681fd79bd44a034cb424cb70861d84521968b.tar.bz2 trackermap-server-f07681fd79bd44a034cb424cb70861d84521968b.zip |
Implement Fifotrack protocol
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/FifotrackProtocolDecoderTest.java | 18 |
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")); + + } + +} |