aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-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"));
+
+ }
+
+}