From d492aeec2ab8ba53725d91e99140dc2774f7e3f1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 11 Apr 2021 12:31:58 -0700 Subject: Implement GS100 protocol --- .../traccar/protocol/Gs100ProtocolDecoderTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java (limited to 'src/test') diff --git a/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java new file mode 100644 index 000000000..91bbf386c --- /dev/null +++ b/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class Gs100ProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + var decoder = new Gs100ProtocolDecoder(null); + + verifyNull(decoder, binary( + "474C490F383632343632303332353036373030133839333831303131363039313838343837323546084657312E302E3236")); + + verifyPositions(decoder, binary( + "47440216900000064113030417020236402C452286650051929716900000064115030417020236408C4522866800379020")); + + } + +} -- cgit v1.2.3