diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-25 11:00:38 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-25 11:10:02 +1200 |
commit | 5e97d2fd54ee9a29839f08501fc4e90088f896c9 (patch) | |
tree | b09a318a0893348ceebd68f23509f9b76b585742 /test/org/traccar | |
parent | 187fae2778a6b072d0fbf325d50d5d5df9fd2f01 (diff) | |
download | trackermap-server-5e97d2fd54ee9a29839f08501fc4e90088f896c9.tar.gz trackermap-server-5e97d2fd54ee9a29839f08501fc4e90088f896c9.tar.bz2 trackermap-server-5e97d2fd54ee9a29839f08501fc4e90088f896c9.zip |
Implement Flextrack protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/FlextrackProtocolDecoderTest.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java b/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java new file mode 100644 index 000000000..126e8799d --- /dev/null +++ b/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java @@ -0,0 +1,23 @@ +package org.traccar.protocol; + +import org.junit.Test; + +import static org.junit.Assert.assertNull; +import static org.traccar.helper.DecoderVerifier.verify; + +public class FlextrackProtocolDecoderTest extends ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + FlextrackProtocolDecoder decoder = new FlextrackProtocolDecoder(new FlextrackProtocol()); + + assertNull(decoder.decode(null, null, + "-1,LOGON,7000000123,8945000000")); + + verify(decoder.decode(null, null, + "-2,UNITSTAT,20050205,181923,7000004634,N55.46.0812,E009.21.1665,122,198,6,3934,-81,01A8,23802,213,55,37FD,45,0055,12878")); + + } + +} |