aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/EgtsFrameDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-23 05:38:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-23 05:38:03 +1300
commitfeaa6e2f2816efad85bdb3a29e40bd2313e65475 (patch)
tree27685541898749a5cf15781dd227f062e4d053ec /test/org/traccar/protocol/EgtsFrameDecoderTest.java
parent7e1da0e6223f1b07269fb3e43369e35c1f3baf3e (diff)
downloadtrackermap-server-feaa6e2f2816efad85bdb3a29e40bd2313e65475.tar.gz
trackermap-server-feaa6e2f2816efad85bdb3a29e40bd2313e65475.tar.bz2
trackermap-server-feaa6e2f2816efad85bdb3a29e40bd2313e65475.zip
Initial EGTS protocol implementation
Diffstat (limited to 'test/org/traccar/protocol/EgtsFrameDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/EgtsFrameDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/EgtsFrameDecoderTest.java b/test/org/traccar/protocol/EgtsFrameDecoderTest.java
new file mode 100644
index 000000000..91a53525e
--- /dev/null
+++ b/test/org/traccar/protocol/EgtsFrameDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+import java.nio.ByteOrder;
+
+public class EgtsFrameDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ EgtsFrameDecoder decoder = new EgtsFrameDecoder();
+
+ verifyFrame(
+ binary("0100020B0025003A5701C91A003A5701CD6E68490202101700CBB4740F7617FD924364104F116A0000000000010300001EC2"),
+ decoder.decode(null, null, binary(ByteOrder.LITTLE_ENDIAN, "0100020B0025003A5701C91A003A5701CD6E68490202101700CBB4740F7617FD924364104F116A0000000000010300001EC2")));
+
+ }
+
+}