aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-12-23 23:00:47 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-12-23 23:00:47 -0800
commit19f170b8c147935c8df4044a4fa3b6456baad6c7 (patch)
tree2fcac619a75ee1f657474c401e5b6d42a3a7baa5 /src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java
parent25dfb6a1fb66f5565ec338928d000d271f7e62db (diff)
downloadtrackermap-server-19f170b8c147935c8df4044a4fa3b6456baad6c7.tar.gz
trackermap-server-19f170b8c147935c8df4044a4fa3b6456baad6c7.tar.bz2
trackermap-server-19f170b8c147935c8df4044a4fa3b6456baad6c7.zip
Add Digital Systems DSF22 protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java
new file mode 100644
index 000000000..96cd78f03
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/Dsf22ProtocolDecoderTest.java
@@ -0,0 +1,23 @@
+package org.traccar.protocol;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+@Ignore
+public class Dsf22ProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new Dsf22ProtocolDecoder(null);
+
+ verifyPositions(decoder, binary(
+ "4642000101A8EE5F0ECA5FF421B33F524E32610401"));
+
+ verifyPositions(decoder, binary(
+ "4642000103A8EE5F0ECA5FF421B33F524E326104010216600EFC92F421B63F524E366104013238600E1EBEF421B93F524E35610401"));
+
+ }
+
+}