aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-24 23:31:44 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-24 23:31:44 -0700
commitff62eefa74f7d8cb36388adce981e1f6c306180a (patch)
treebe52493eeea93f70a64ad386cc83978eb4649802 /src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java
parentbec490817a2251dc37f727f3a755a20411761993 (diff)
downloadtrackermap-server-ff62eefa74f7d8cb36388adce981e1f6c306180a.tar.gz
trackermap-server-ff62eefa74f7d8cb36388adce981e1f6c306180a.tar.bz2
trackermap-server-ff62eefa74f7d8cb36388adce981e1f6c306180a.zip
Support binary Fifotrack messages
Diffstat (limited to 'src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java b/src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java
new file mode 100644
index 000000000..6b39b6c17
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/FifotrackFrameDecoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class FifotrackFrameDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ FifotrackFrameDecoder decoder = new FifotrackFrameDecoder();
+
+ verifyFrame(
+ binary("24243132362c3836393436373034393239303738372c324138432c4130312c2c3139303431333135333235342c412c2d31352e3132373836382c33392e3236323530362c302c3136322c3431352c38303937323234332c302c303030302c30302c302c3634337c337c353141467c424632462c3141337c3446367c3833327c302c312c2a3534"),
+ decoder.decode(null, null, binary("24243132362c3836393436373034393239303738372c324138432c4130312c2c3139303431333135333235342c412c2d31352e3132373836382c33392e3236323530362c302c3136322c3431352c38303937323234332c302c303030302c30302c302c3634337c337c353141467c424632462c3141337c3446367c3833327c302c312c2a35340d0a")));
+
+ }
+
+}