aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/MtxProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-11 10:52:42 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-11 10:52:42 +1200
commit807eb5398e5e9a6ab827a576cb94e904f509bda5 (patch)
tree61246b151efbe987ce21444374807e6d192c1691 /test/org/traccar/protocol/MtxProtocolDecoderTest.java
parent761eb81bc2fcc7f3abf6817209e244cb276446e1 (diff)
downloadtrackermap-server-807eb5398e5e9a6ab827a576cb94e904f509bda5.tar.gz
trackermap-server-807eb5398e5e9a6ab827a576cb94e904f509bda5.tar.bz2
trackermap-server-807eb5398e5e9a6ab827a576cb94e904f509bda5.zip
Add support for MTX protocol
Diffstat (limited to 'test/org/traccar/protocol/MtxProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/MtxProtocolDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MtxProtocolDecoderTest.java b/test/org/traccar/protocol/MtxProtocolDecoderTest.java
new file mode 100644
index 000000000..f003780cd
--- /dev/null
+++ b/test/org/traccar/protocol/MtxProtocolDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.traccar.helper.TestDataManager;
+import static org.traccar.helper.DecoderVerifier.verify;
+import static org.junit.Assert.assertNull;
+import org.junit.Test;
+
+public class MtxProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ MtxProtocolDecoder decoder = new MtxProtocolDecoder(new TestDataManager(), null, null);
+
+ verify(decoder.decode(null, null,
+ "#MTX,353815011138124,20101226,195550,41.6296399,002.3611174,000,035,000000.00,X,X,1111,000,0,0"));
+
+ }
+
+}