aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-11 22:20:12 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-11 22:20:12 -0700
commit961570af087c2b01935542f78a851a9908ccb430 (patch)
tree32e2e9e150aa8e9d419bf55159168d92ce95954d /src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java
parent55b0a40e51e0bee5d37f0f3d34b6f1dd287973f9 (diff)
downloadtrackermap-server-961570af087c2b01935542f78a851a9908ccb430.tar.gz
trackermap-server-961570af087c2b01935542f78a851a9908ccb430.tar.bz2
trackermap-server-961570af087c2b01935542f78a851a9908ccb430.zip
Add Mictrack B2316 protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java
new file mode 100644
index 000000000..6b9c71b0e
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/B2316ProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class B2316ProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new B2316ProtocolDecoder(null);
+
+ verifyPositions(decoder, false, text(
+ "{\"imei\":\"866349041783600\",\"data\":[{\"tm\":1631162952,\"wn\":7},{\"tm\":1631158729,\"ic\":\"89883030000059398609\",\"ve\":\"B2316.TAU.U.TH01\"},{\"tm\":1631158805,\"te\":\"312,363\",\"st\":0,\"ba\":3,\"sn\":80},{\"tm\":1631158829,\"ci\":\"505,1,8218,133179149,-108\"},{\"tm\":1631162956,\"wi\":\"101331c17f4f,-74;f46bef7953bb,-81;b09575cff1c8,-86;e2b9e5d61a7a,-88;b0ee7b4dee2f,-88;e0b9e5d61a77,-89;f66bef7953b9,-89;\",\"te\":\"335,366\",\"hr\":58,\"bp\":\"113,73\",\"st\":0,\"ba\":3,\"sn\":60},{\"tm\":1631162968,\"ci\":\"505,1,8218,133179149,-105\"}]}"));
+
+ }
+
+}