aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TelicProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-21 11:04:48 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-21 11:04:48 +1300
commit63d3e629fd0b4d02b1885160e4289596cfd958c0 (patch)
tree61e0a0733a77a827f45d75dab57f9f07cc9e5979 /test/org/traccar/protocol/TelicProtocolDecoderTest.java
parent7eaf8d55da9b71d697c9307cbf79220df7a1535d (diff)
downloadtrackermap-server-63d3e629fd0b4d02b1885160e4289596cfd958c0.tar.gz
trackermap-server-63d3e629fd0b4d02b1885160e4289596cfd958c0.tar.bz2
trackermap-server-63d3e629fd0b4d02b1885160e4289596cfd958c0.zip
Rename telik protocol to telic
Diffstat (limited to 'test/org/traccar/protocol/TelicProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/TelicProtocolDecoderTest.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TelicProtocolDecoderTest.java b/test/org/traccar/protocol/TelicProtocolDecoderTest.java
new file mode 100644
index 000000000..536875a2f
--- /dev/null
+++ b/test/org/traccar/protocol/TelicProtocolDecoderTest.java
@@ -0,0 +1,25 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class TelicProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ TelicProtocolDecoder decoder = new TelicProtocolDecoder(new TelicProtocol());
+
+ verifyNothing(decoder, text(
+ "0026436729|232|01|003002030"));
+
+ verifyPosition(decoder, text(
+ "182043672999,010100001301,0,270613041652,166653,475341,3,0,355,6,2,1,231,8112432,23201,01,00,217,0,0,0,0,7"),
+ position("2013-06-27 04:16:52.000", true, 47.53410, 16.66530));
+
+ verifyPosition(decoder, text(
+ "182043672999,010100001301,0,270613041652,166653,475341,3,0,355,6,2,1,231,8112432,23201,01,00,217,0,0,0,0,7"));
+
+ }
+
+}