diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-30 16:11:06 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-30 16:11:06 +1300 |
commit | afd02503a2b86d13673c771fb870d933e6ac9185 (patch) | |
tree | 3782563c51cbb11481c68b1874b7e5b246dd635a /test/org/traccar/protocol/SupermateProtocolDecoderTest.java | |
parent | 97db54d0defa6b44bd0d47b0749783417356c117 (diff) | |
download | trackermap-server-afd02503a2b86d13673c771fb870d933e6ac9185.tar.gz trackermap-server-afd02503a2b86d13673c771fb870d933e6ac9185.tar.bz2 trackermap-server-afd02503a2b86d13673c771fb870d933e6ac9185.zip |
Add support for Supermate protocol
Diffstat (limited to 'test/org/traccar/protocol/SupermateProtocolDecoderTest.java')
-rwxr-xr-x | test/org/traccar/protocol/SupermateProtocolDecoderTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/SupermateProtocolDecoderTest.java b/test/org/traccar/protocol/SupermateProtocolDecoderTest.java new file mode 100755 index 000000000..dac660182 --- /dev/null +++ b/test/org/traccar/protocol/SupermateProtocolDecoderTest.java @@ -0,0 +1,24 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class SupermateProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + SupermateProtocolDecoder decoder = new SupermateProtocolDecoder(new SupermateProtocol()); + + verifyPosition(decoder, text( + "2:359672050130411:1:*,00000000,XT,A,10031b,140b28,80ad4c72,81ba2d2c,06ab,238c,020204010000,12,0,0000,0003e6")); + + verifyPosition(decoder, text( + "2:359672050130411:2:*,00000000,UP,A,10031b,140a1c,80ad4bf6,81ba2dc3,0000,0000,020204000000,14,0,0000,0003e6")); + + verifyPosition(decoder, text( + "2:359672050130411:1:*,00000000,BJ,A,10031b,140c2f,80ad5012,81ba1f27,0f4c,2e18,020204014000,14,0,0000,0003ed")); + + } + +}
\ No newline at end of file |