aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-27 11:43:08 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-27 11:43:08 -0700
commit68beaf9a13f6b9e8023dd73bb7078f80b4a24cf8 (patch)
treeadd268be865501be3a6b517fba714876de8195b9 /src/test/java/org/traccar/protocol
parentc2c1e429865e84a09ce95dc9f9c8e707fa9c50eb (diff)
downloadtrackermap-server-68beaf9a13f6b9e8023dd73bb7078f80b4a24cf8.tar.gz
trackermap-server-68beaf9a13f6b9e8023dd73bb7078f80b4a24cf8.tar.bz2
trackermap-server-68beaf9a13f6b9e8023dd73bb7078f80b4a24cf8.zip
Implement Radar Trio protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/RadarProtocolDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/RadarProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/RadarProtocolDecoderTest.java
new file mode 100644
index 000000000..3289474d1
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/RadarProtocolDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class RadarProtocolDecoderTest extends ProtocolTest {
+
+ @Ignore
+ @Test
+ public void testDecode() throws Exception {
+
+ RadarProtocolDecoder decoder = new RadarProtocolDecoder(null);
+
+ verifyPosition(decoder, binary(
+ "361800011459015cb497554c01c101ff003500050038000207ff831c04c01f1c00555cb464895cb46487ff7f04eafeffdbd80000079402ead0000000110000000000120d2aff150000000000000002000a00050002436c61726f0000000000008b00000003764500037653005207ff831c04c01f1c00555cb4648a5cb46489ff7f04eafeffdbd80000079402ead0000000010000000000120e00ff150000000000000002000800060002436c61726f0000000000008d00000003764600037654000207ff831c04c01f1c00555cb464d85cb464d7ff7f04eafeffdbd80000079402ead0000000110000000000120e2aff150000000000000002000700070003436c61726f0000000000008d000000037694000376a2005207ff831c04c01f1c00555cb464d95cb464d9ff7f04eafeffdbd80000079402eac0000000010000000000120e00ff150000000000000002000700070003436c61726f0000000000008d000000037695000376a3000207ff831c04c01f1c00555cb465065cb46504ff7f04eafeffdbd80000079402ead0000000110000000000120e2aff150000000000000000000500060005436c61726f0000000000008d0000000376c2000376d07ed7"));
+
+ }
+
+}