aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-25 17:50:09 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-25 17:50:09 -0800
commit9d302724115995c7cb587c581eb2d10c4a589cf3 (patch)
treeee4e930b37e05c3c8e24c50a56f1b742f9ba248b /src/test/java
parentc69b4524fc003613bb70ef98fe99fd6b26277661 (diff)
downloadtrackermap-server-9d302724115995c7cb587c581eb2d10c4a589cf3.tar.gz
trackermap-server-9d302724115995c7cb587c581eb2d10c4a589cf3.tar.bz2
trackermap-server-9d302724115995c7cb587c581eb2d10c4a589cf3.zip
Add Dolphin protocol support
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java
new file mode 100644
index 000000000..ea60b51b1
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+@Ignore
+public class DolphinProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ DolphinProtocolDecoder decoder = new DolphinProtocolDecoder(null);
+
+ verifyPositions(decoder, binary(
+ "ababe0110000000100000100b3950b86c70e030048040000f524bcc90a9d010d9de6144215b78a46421d6666c6402008359a99cf41380a455d90e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000015e71cc8f5d00b00ee99a20200c2c88901000001ef9aa202000200000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf4145d292e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa066239000000158d1dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf41455696e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000015821dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf4145da99e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa066239000000148d1dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf41455e9de15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000014fd1cc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf4145e2a0e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000013931dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf414566a4e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab"));
+
+ }
+
+}