aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-12-21 19:53:13 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-12-21 19:53:13 -0800
commit1ca6c8561f1aa21d5f73030bcd0ab3e9c578a9f1 (patch)
tree7b7038475b5ceb00cccffd6feaadc64a53fcb824 /src/test/java/org/traccar
parente4216e7eabcb99c585909a262a1cf8d626b97ca6 (diff)
downloadtrackermap-server-1ca6c8561f1aa21d5f73030bcd0ab3e9c578a9f1.tar.gz
trackermap-server-1ca6c8561f1aa21d5f73030bcd0ab3e9c578a9f1.tar.bz2
trackermap-server-1ca6c8561f1aa21d5f73030bcd0ab3e9c578a9f1.zip
Implement Blue ET700 protocol
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java
new file mode 100644
index 000000000..1d1716238
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class BlueProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ BlueProtocolDecoder decoder = new BlueProtocolDecoder(null);
+
+ verifyPosition(decoder, binary(
+ "aa0055860080e3e79e0b840f800010320000000020010f0040008005ee197f113b26e800000000000000130c11091a2b005ac7a621120f0002000000b7000002000000000000001a3a0000000001f40000000000003f"));
+
+ }
+
+}