aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-12 17:47:35 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-12 17:47:35 -0700
commitc801d33f44ae346d01e19e47a3b97c8405f4d5b4 (patch)
treee5e5855d64f8a5de23c0823ca0a2e341dd1a2175 /src/test
parentdfaef4eca85a065e35c360fd6f712b2ad62f2e7a (diff)
downloadtrackermap-server-c801d33f44ae346d01e19e47a3b97c8405f4d5b4.tar.gz
trackermap-server-c801d33f44ae346d01e19e47a3b97c8405f4d5b4.tar.bz2
trackermap-server-c801d33f44ae346d01e19e47a3b97c8405f4d5b4.zip
Fix G1RUS decoding
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/G1rusProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/G1rusProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/G1rusProtocolDecoderTest.java
new file mode 100644
index 000000000..c8b4e35fe
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/G1rusProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class G1rusProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = inject(new G1rusProtocolDecoder(null));
+
+ verifyPositions(decoder, binary(
+ "f84604000d85f5e55298004b012ad7d524003d1d0f50726f6d61205361742031303030201556312e31302656312e312e340a03120fa0142b8475a157050401846dfc060175120a29a10d02440111002100310041005107d10ef8"));
+
+ }
+
+}