aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-11 12:31:58 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-11 12:31:58 -0700
commitd492aeec2ab8ba53725d91e99140dc2774f7e3f1 (patch)
treec2accb90d8d990519e8e20eb44fcd05ce762b60d /src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java
parent2099230503370be87b893287e264aa200d0d930f (diff)
downloadtrackermap-server-d492aeec2ab8ba53725d91e99140dc2774f7e3f1.tar.gz
trackermap-server-d492aeec2ab8ba53725d91e99140dc2774f7e3f1.tar.bz2
trackermap-server-d492aeec2ab8ba53725d91e99140dc2774f7e3f1.zip
Implement GS100 protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/Gs100ProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
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"));
+
+ }
+
+}