aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-02 13:33:37 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-07-02 13:33:37 -0700
commitfc56f571dbef88316ef3dbf98d8351e6e34cba62 (patch)
tree82718ad6ac77f21221f7084f044f3379840ac5b9 /src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java
parent9a070e77b5c459781a9cdf1e143b2034a19e86b7 (diff)
downloadtrackermap-server-fc56f571dbef88316ef3dbf98d8351e6e34cba62.tar.gz
trackermap-server-fc56f571dbef88316ef3dbf98d8351e6e34cba62.tar.bz2
trackermap-server-fc56f571dbef88316ef3dbf98d8351e6e34cba62.zip
Initial STB IND protocol support
Diffstat (limited to 'src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java
new file mode 100644
index 000000000..ec7ef7299
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/StbProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class StbProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = new StbProtocolDecoder(null);
+
+ verifyPosition(decoder, text(
+ "{\"devId\":\"CHZD08KPD0210425046\",\"devType\":2,\"hardVersion\":\"HDTTVA19\",\"msgType\":110,\"protocolVersion\":\"V1\",\"softVersion\":\"3.1.8\",\"switchCabStatus\":\"1\",\"txnNo\":\"1625212741537\"}"));
+
+ }
+
+}