From 807eb5398e5e9a6ab827a576cb94e904f509bda5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 11 Apr 2015 10:52:42 +1200 Subject: Add support for MTX protocol --- .../org/traccar/protocol/MtxProtocolDecoderTest.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/org/traccar/protocol/MtxProtocolDecoderTest.java (limited to 'test/org/traccar') 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")); + + } + +} -- cgit v1.2.3