aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-05-23 17:47:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-05-23 17:47:47 -0700
commit77980d05fa389d77ddd4e52720394406d79c8e49 (patch)
tree14cd6464da55cea63b75933eca503a02e418bc3c /src/test/java/org/traccar
parentd5a391ccb44bb526417d33f1e11fd2540b28103b (diff)
downloadtraccar-server-77980d05fa389d77ddd4e52720394406d79c8e49.tar.gz
traccar-server-77980d05fa389d77ddd4e52720394406d79c8e49.tar.bz2
traccar-server-77980d05fa389d77ddd4e52720394406d79c8e49.zip
Add flexible report protocol
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/protocol/FlexibleReportProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/FlexibleReportProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/FlexibleReportProtocolDecoderTest.java
new file mode 100644
index 000000000..068447074
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/FlexibleReportProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class FlexibleReportProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new FlexibleReportProtocolDecoder(null);
+
+ verifyAttributes(decoder, binary(
+ "7D010860112040978399000027E3CFC30130002E7FFFFFFF0C00000000055D4A800ABA9500000000000000002F5D0E800000000000FFFFFFFF158A0000000000FFFF"));
+
+ }
+
+}