From 3b3ffac17aadd53dda2476350b5ab0017c2cfaa9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 15 Dec 2015 21:26:55 +1300 Subject: Implement ThinkRace communication protocol --- .../protocol/ThinkRaceProtocolDecoderTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/org/traccar/protocol/ThinkRaceProtocolDecoderTest.java (limited to 'test/org/traccar/protocol/ThinkRaceProtocolDecoderTest.java') diff --git a/test/org/traccar/protocol/ThinkRaceProtocolDecoderTest.java b/test/org/traccar/protocol/ThinkRaceProtocolDecoderTest.java new file mode 100644 index 000000000..2a2d140d3 --- /dev/null +++ b/test/org/traccar/protocol/ThinkRaceProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class ThinkRaceProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + ThinkRaceProtocolDecoder decoder = new ThinkRaceProtocolDecoder(new ThinkRaceProtocol()); + + verifyNothing(decoder, binary( + "48415349483031343730303134382C8000100134363030303134363139363239343806FF")); + + verifyPosition(decoder, binary( + "48415349483031343730303134382C90001755701674D70155466406CBB813003D24A410F5000000770B4C")); + + } + +} -- cgit v1.2.3