aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-05-05 18:44:29 -0700
committerGitHub <noreply@github.com>2021-05-05 18:44:29 -0700
commit9330669fa5456d7be2395c395fbc4dde4635e923 (patch)
tree8d7c7e3236a0b14c5baf95812a0ceab92a38f3e5 /src/test/java
parent9ee31327f5eb7f5384345064b501eedecbb7f3b0 (diff)
parent2f398690b1c4ddb837ff59a92ed6caea54d35772 (diff)
downloadtrackermap-server-9330669fa5456d7be2395c395fbc4dde4635e923.tar.gz
trackermap-server-9330669fa5456d7be2395c395fbc4dde4635e923.tar.bz2
trackermap-server-9330669fa5456d7be2395c395fbc4dde4635e923.zip
Merge pull request #4672 from AuroraRAS/mavlink2_udp
Add mavlink2 protocol support
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/Mavlink2ProtocolDecoderTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Mavlink2ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Mavlink2ProtocolDecoderTest.java
new file mode 100644
index 000000000..f4b6d8229
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/Mavlink2ProtocolDecoderTest.java
@@ -0,0 +1,14 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class Mavlink2ProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+ var decoder = new Mavlink2ProtocolDecoder(null);
+ verifyAttributes(decoder, binary("fd1c0000ce01012100004da91f004005d323b89aa30ea6ed070099fb0100f7fffdff0000942c4a88"));
+ verifyAttributes(decoder, binary("fd1c0000e7010121000047aa1f004005d323b89aa30e9ced070093fb0100f8fffdff0000952c70ff"));
+ }
+}