diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 15:24:10 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 15:24:10 -0800 |
commit | 74a6b0bad74dd27ffdeeddf552f1ebfcf963612a (patch) | |
tree | f3ba54791fd32e67136206604c2b27724ace24b9 /src/test/java | |
parent | f3d1281d421a83677fbbcd25426e3440efc4c00a (diff) | |
download | trackermap-server-74a6b0bad74dd27ffdeeddf552f1ebfcf963612a.tar.gz trackermap-server-74a6b0bad74dd27ffdeeddf552f1ebfcf963612a.tar.bz2 trackermap-server-74a6b0bad74dd27ffdeeddf552f1ebfcf963612a.zip |
Implement Mobilogix protocol
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/traccar/protocol/MobilogixProtocolDecoderTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MobilogixProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MobilogixProtocolDecoderTest.java new file mode 100644 index 000000000..c7772557e --- /dev/null +++ b/src/test/java/org/traccar/protocol/MobilogixProtocolDecoderTest.java @@ -0,0 +1,24 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class MobilogixProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + MobilogixProtocolDecoder decoder = new MobilogixProtocolDecoder(null); + + verifyNull(decoder, text( + "[2020-09-25 21:21:43,T1,1,V1.1.1,201951132415,,,12345678,724108034109376,359366080215256]")); + + verifyPosition(decoder, text( + "[2011-12-15 10:00:00,T2,1,V1.0.0,A123045612AA123488,1B,4.5,22.564152,113.252432,50.6,270.5,1,460:00:10101:03633]")); + + verifyPosition(decoder, text( + "[2011-12-15 10:00:00,T3,1,V1.0.0,A123045612AA123488,1B,4.5,22.564152,113.252432,50.6,270.5,1]")); + + } + +} |