From e6b0e38e6d250253b62c41dac3f01a9309a8de7f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Apr 2019 21:32:12 -0700 Subject: Implement Globalstar protocol --- .../protocol/GlobalstarProtocolDecoderTest.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java (limited to 'src/test') diff --git a/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java new file mode 100644 index 000000000..625d697d7 --- /dev/null +++ b/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java @@ -0,0 +1,27 @@ +package org.traccar.protocol; + +import io.netty.handler.codec.http.HttpMethod; +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class GlobalstarProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + GlobalstarProtocolDecoder decoder = new GlobalstarProtocolDecoder(null); + + verifyPositions(decoder, request(HttpMethod.POST, "/", buffer( + "", + "", + "", + "0-2654816", + "1550440592", + "N", + "0x00337BA319B7280A00", + "", + ""))); + + } + +} -- cgit v1.2.3