diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-01 23:05:26 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-01 23:05:26 -0700 |
commit | 3ec3b6958e0cfb2a4e81ae4603908e526dfb1956 (patch) | |
tree | b5f254f4ab1569ab4dffc080fe5cd69d887894ae /src/test/java | |
parent | 8098c2ba47e36b1aa7293a5e3987fd24e94fecf4 (diff) | |
download | traccar-server-3ec3b6958e0cfb2a4e81ae4603908e526dfb1956.tar.gz traccar-server-3ec3b6958e0cfb2a4e81ae4603908e526dfb1956.tar.bz2 traccar-server-3ec3b6958e0cfb2a4e81ae4603908e526dfb1956.zip |
Implement TechTLT protocol
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/traccar/protocol/TechTltProtocolDecoderTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
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")); + + } + +} |