From 3ec3b6958e0cfb2a4e81ae4603908e526dfb1956 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 1 May 2019 23:05:26 -0700 Subject: Implement TechTLT protocol --- .../protocol/TechTltProtocolDecoderTest.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/TechTltProtocolDecoderTest.java (limited to 'src/test/java/org/traccar/protocol') diff --git a/src/test/java/org/traccar/protocol/TechTltProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TechTltProtocolDecoderTest.java new file mode 100644 index 000000000..0fdd26a47 --- /dev/null +++ b/src/test/java/org/traccar/protocol/TechTltProtocolDecoderTest.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class TechTltProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + TechTltProtocolDecoder decoder = new TechTltProtocolDecoder(null); + + verifyPosition(decoder, text( + "002422269*POS=Y,16:21:20,25/11/09,3809.8063N,01444.7438E,4.17,117.23,0.4,09,40076,56341"), + position("2009-11-25 16:21:20.000", true, 38.16344, 14.74573)); + + verifyNull(decoder, text( + "002422269,INFOGPRS,V Bat=13.8,TEMP=23,I TIM,15")); + + } + +} -- cgit v1.2.3