aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-05-18 07:32:25 -0700
committerGitHub <noreply@github.com>2023-05-18 07:32:25 -0700
commit22277c84db8b19fdda252aa21db3a2bf62d6cba2 (patch)
tree365b2ca300856126f9075a0379477b69b8eff1de /src/test
parentfbd3ee0d77673d94766a87aa67c05885e44aa7e5 (diff)
parent05a73b06f94e451239ebc61ebb2b8528705bbc61 (diff)
downloadtrackermap-server-22277c84db8b19fdda252aa21db3a2bf62d6cba2.tar.gz
trackermap-server-22277c84db8b19fdda252aa21db3a2bf62d6cba2.tar.bz2
trackermap-server-22277c84db8b19fdda252aa21db3a2bf62d6cba2.zip
Merge pull request #5085 from LiGuru/master
Add [Protocol]TranSyncProtocol - AIS 140
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/TranSyncProtocolDecoderTest.java17
1 files changed, 17 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..c84ae2e0f
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/TranSyncProtocolDecoderTest.java
@@ -0,0 +1,17 @@
+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("3a3a2b583f086065705154043900801017050b11190f01623ef40887dff00000c25e9ff707000007152a2d0000000105004794916902050000100000050252ee060200822323"));
+
+ verifyAttributes(decoder, binary("3a3a2b583f086065705154043900801017050b11190f01623ef40887dff00000c25e9ff707000007152a2d0000000105004794916902050000000000050252ee060200822323"));
+ }
+}