aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-23 13:11:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-23 13:11:12 +1200
commita228c176c61dcb69815d5667a418f6d77eb40d16 (patch)
tree96a57daba85532fa43979bf2c2db99d6f2b480d8 /test/org/traccar/protocol
parent45249d656002ac258f18fbc4713408dcefc08ee2 (diff)
downloadtrackermap-server-a228c176c61dcb69815d5667a418f6d77eb40d16.tar.gz
trackermap-server-a228c176c61dcb69815d5667a418f6d77eb40d16.tar.bz2
trackermap-server-a228c176c61dcb69815d5667a418f6d77eb40d16.zip
Implement GPSMTA app protocol
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"));
+
+ }
+
+}