From afd02503a2b86d13673c771fb870d933e6ac9185 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 30 Mar 2016 16:11:06 +1300 Subject: Add support for Supermate protocol --- .../protocol/SupermateProtocolDecoderTest.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 test/org/traccar/protocol/SupermateProtocolDecoderTest.java (limited to 'test/org') 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 -- cgit v1.2.3