aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-05-01 23:05:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-05-01 23:05:26 -0700
commit3ec3b6958e0cfb2a4e81ae4603908e526dfb1956 (patch)
treeb5f254f4ab1569ab4dffc080fe5cd69d887894ae /src/test/java/org/traccar
parent8098c2ba47e36b1aa7293a5e3987fd24e94fecf4 (diff)
downloadtrackermap-server-3ec3b6958e0cfb2a4e81ae4603908e526dfb1956.tar.gz
trackermap-server-3ec3b6958e0cfb2a4e81ae4603908e526dfb1956.tar.bz2
trackermap-server-3ec3b6958e0cfb2a4e81ae4603908e526dfb1956.zip
Implement TechTLT protocol
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/protocol/TechTltProtocolDecoderTest.java22
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"));
+
+ }
+
+}