From 8ab0f580a24851454ec4a763d81363cc968c78a1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 20 Jun 2017 05:57:16 +1200 Subject: Implement VTFMS protocol --- .../org/traccar/protocol/VtfmsProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/org/traccar/protocol/VtfmsProtocolDecoderTest.java (limited to 'test/org/traccar/protocol/VtfmsProtocolDecoderTest.java') diff --git a/test/org/traccar/protocol/VtfmsProtocolDecoderTest.java b/test/org/traccar/protocol/VtfmsProtocolDecoderTest.java new file mode 100644 index 000000000..a08bfb926 --- /dev/null +++ b/test/org/traccar/protocol/VtfmsProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class VtfmsProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + VtfmsProtocolDecoder decoder = new VtfmsProtocolDecoder(new VtfmsProtocol()); + + verifyPosition(decoder, text( + "(863071010087648,0HK44,00,000,14,2,9,,A,114946,180313,11.0244,076.9768,282,000,00000,00000,K,0000128,1,12.8,,200,2.501,,4.001,0,0,0,0,0,0,0,,)105")); + + } + +} -- cgit v1.2.3