From b7cb296cf20d6f526f5bf3f59844d13852a8cbac Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 30 May 2017 17:53:28 +1200 Subject: Implement FlexComm protocol --- .../traccar/protocol/FlexCommProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/org/traccar/protocol/FlexCommProtocolDecoderTest.java (limited to 'test/org') diff --git a/test/org/traccar/protocol/FlexCommProtocolDecoderTest.java b/test/org/traccar/protocol/FlexCommProtocolDecoderTest.java new file mode 100644 index 000000000..393c45793 --- /dev/null +++ b/test/org/traccar/protocol/FlexCommProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class FlexCommProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + FlexCommProtocolDecoder decoder = new FlexCommProtocolDecoder(new FlexCommProtocol()); + + verifyPosition(decoder, text( + "7E27865067022408382201705241211301024932197006712794000910022481008234100040002C5002A2200011000000006306941827")); + + } + +} -- cgit v1.2.3