aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java')
-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"));
+
+ }
+
+}