aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorNikolay Vlahovski <nvlahovski@gmail.com>2023-05-15 19:42:22 +0300
committerNikolay Vlahovski <nvlahovski@gmail.com>2023-05-15 19:42:22 +0300
commit6dae98179630a15c5f62899b32ed093e293822e2 (patch)
tree364ba283fca1ea7e38f4c0b4c3c02d5356caf660 /src/test/java
parent553527d9fbe689be243acbf219bed432f15c25e3 (diff)
downloadtrackermap-server-6dae98179630a15c5f62899b32ed093e293822e2.tar.gz
trackermap-server-6dae98179630a15c5f62899b32ed093e293822e2.tar.bz2
trackermap-server-6dae98179630a15c5f62899b32ed093e293822e2.zip
Add [Protocol]TranSyncProtocol
Add TranSyncProtocol.java Add TranSyncProtocolDecoder.java Add TranSyncProtocolDecoderTest.java
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/TranSyncProtocolDecoderTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TranSyncProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TranSyncProtocolDecoderTest.java
new file mode 100644
index 000000000..1b90566d4
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/TranSyncProtocolDecoderTest.java
@@ -0,0 +1,22 @@
+package org.traccar.protocol;
+
+
+import org.junit.jupiter.api.Test;
+import org.traccar.ProtocolTest;
+
+public class TranSyncProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = inject(new TranSyncProtocolDecoder(null));
+
+
+ verifyPosition(decoder, binary(
+ "3a3a2b583f086065705154043900801017050b11190f01623ef40887dff00000c25e9ff707000007152a2d0000000105004794916902050000000000050252ee060200822323"));
+
+ verifyAttributes(decoder, binary(
+ "3a3a2b583f086065705154043900801017050b11190f01623ef40887dff00000c25e9ff707000007152a2d0000000105004794916902050000000000050252ee060200822323")
+ );
+ }
+}