aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-05-29 23:11:19 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-05-29 23:11:19 -0700
commitc524d170f3324ccf10944887faa3d9f35e99e31a (patch)
tree15ddad1449f81cbad53f266665eddbc7615599f6 /src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java
parentab1022d0c571af09b2036f8694db71537fa430cd (diff)
downloadtrackermap-server-c524d170f3324ccf10944887faa3d9f35e99e31a.tar.gz
trackermap-server-c524d170f3324ccf10944887faa3d9f35e99e31a.tar.bz2
trackermap-server-c524d170f3324ccf10944887faa3d9f35e99e31a.zip
Fix protocol decoding
Diffstat (limited to 'src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java b/src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java
new file mode 100644
index 000000000..3bc2715db
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/DingtekFrameDecoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class DingtekFrameDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ DingtekFrameDecoder decoder = new DingtekFrameDecoder();
+
+ verifyFrame(
+ binary("383030303031303131453032383830303138303030303030303030313545303038303545433430303031313836383832323034303130343433303831"),
+ decoder.decode(null, null, binary("383030303031303131453032383830303138303030303030303030313545303038303545433430303031313836383832323034303130343433303831")));
+
+ }
+
+}