aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-05 16:48:27 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-05 16:48:27 -0700
commit10a11e03fbb45506973c85ae49d0fd1443d0f9f1 (patch)
treecadcbe287fc14b0c9300b73163938539254fa89e /src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java
parentf8e6bc5ced2244f5f09664e7d778c0bf51cd4ab9 (diff)
downloadtrackermap-server-10a11e03fbb45506973c85ae49d0fd1443d0f9f1.tar.gz
trackermap-server-10a11e03fbb45506973c85ae49d0fd1443d0f9f1.tar.bz2
trackermap-server-10a11e03fbb45506973c85ae49d0fd1443d0f9f1.zip
Support new Xexun protocol (fix #4727)
Diffstat (limited to 'src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java b/src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java
new file mode 100644
index 000000000..aeca95376
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/Xexun2FrameDecoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class Xexun2FrameDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new Xexun2FrameDecoder();
+
+ verifyFrame(
+ binary("faaf0014000286147503139003400032f2b001002f4260b0d6a0008019104a3378323130333135317c323130333132303100704020308715758089502023015648643670faaf"),
+ decoder.decode(null, null, binary("faaf0014000286147503139003400032f2b001002f4260b0d6a0008019104a3378323130333135317c323130333132303100704020308715758089502023015648643670faaf")));
+
+ }
+
+}