From a228c176c61dcb69815d5667a418f6d77eb40d16 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 23 Sep 2015 13:11:12 +1200 Subject: Implement GPSMTA app protocol --- .../traccar/protocol/GpsmtaProtocolDecoderTest.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/org/traccar/protocol/GpsmtaProtocolDecoderTest.java (limited to 'test/org/traccar') 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")); + + } + +} -- cgit v1.2.3