aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-08 06:44:45 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-08 06:44:45 -0700
commit3ac73dabfd5d9fb403c119574acd1581daa12b90 (patch)
tree33a1679b4a292b5a4f70ca5a8fa1a3f5c5ca6a70 /src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java
parent596f755e19ec38cf5ce426595e2fba1a5b156338 (diff)
downloadtrackermap-server-3ac73dabfd5d9fb403c119574acd1581daa12b90.tar.gz
trackermap-server-3ac73dabfd5d9fb403c119574acd1581daa12b90.tar.bz2
trackermap-server-3ac73dabfd5d9fb403c119574acd1581daa12b90.zip
Add Thuraya protocol support
Diffstat (limited to 'src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java
new file mode 100644
index 000000000..90431fa24
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/ThurayaProtocolDecoderTest.java
@@ -0,0 +1,24 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class ThurayaProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = inject(new ThurayaProtocolDecoder(null));
+
+ verifyPositions(decoder, binary(
+ "235400437101072bca3c0201348b9a00014c9f085493fc02200c5411470000000042323a300001348b9a00014d03085493ea02200c5010000000000042323a3000f2c1"));
+
+ verifyPosition(decoder, binary(
+ "2354002b5101072bca3c01348b9a00013fba000000000000000010000000000042323a3000174f4e00f9de"));
+
+ verifyNull(decoder, binary(
+ "235400d88115071e37d691030133342e3233362e3133302e3637000000001e56313030320030000700080102030405060708020101010101020201030103030302020000007800000078000004b000001c20050a64000015b3800015b374657374696e67003132333435360002010f28393031303539383938303134373738000043383a592c43373a592c43333a592c43323a592c43313a592c42353a592c42343a592c42323a592c42313a592c41323a592c41313a590045313a592c45373a590065746973616c61742e61650047455400322e3130d6de"));
+
+ }
+
+}