aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/GpsmtaProtocolDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GpsmtaProtocolDecoderTest.java b/test/org/traccar/protocol/GpsmtaProtocolDecoderTest.java
new file mode 100644
index 000000000..a5ac56a6e
--- /dev/null
+++ b/test/org/traccar/protocol/GpsmtaProtocolDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNull;
+import static org.traccar.helper.DecoderVerifier.verify;
+
+public class GpsmtaProtocolDecoderTest extends ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ GpsmtaProtocolDecoder decoder = new GpsmtaProtocolDecoder(new GpsmtaProtocol());
+
+ verify(decoder.decode(null, null,
+ "359144048138856 1442932957 49.85064 24.003979 1 0 40 0 10 110 26 0 0"));
+
+ }
+
+}