aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-06-13 22:22:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-06-13 22:22:08 +1200
commite6d9af4efc0895cd1723f1cd2b80f82776ccf2e0 (patch)
treea607aa473526d1a5259030bd1a9494419e9a1be5 /test
parentffc1755cca2476dc9a4bb430c968207657997222 (diff)
downloadtraccar-server-e6d9af4efc0895cd1723f1cd2b80f82776ccf2e0.tar.gz
traccar-server-e6d9af4efc0895cd1723f1cd2b80f82776ccf2e0.tar.bz2
traccar-server-e6d9af4efc0895cd1723f1cd2b80f82776ccf2e0.zip
Implement Telik protocol (fix #691)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/TelikProtocolDecoderTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TelikProtocolDecoderTest.java b/test/org/traccar/protocol/TelikProtocolDecoderTest.java
new file mode 100644
index 000000000..41b6f3a9d
--- /dev/null
+++ b/test/org/traccar/protocol/TelikProtocolDecoderTest.java
@@ -0,0 +1,24 @@
+package org.traccar.protocol;
+
+import org.traccar.helper.TestDataManager;
+import static org.traccar.helper.DecoderVerifier.verify;
+import static org.junit.Assert.assertNull;
+import org.junit.Test;
+
+public class TelikProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ TelikProtocolDecoder decoder = new TelikProtocolDecoder(null);
+ decoder.setDataManager(new TestDataManager());
+
+ assertNull(decoder.decode(null, null,
+ "0026436729|232|01|003002030"));
+
+ verify(decoder.decode(null, null,
+ "182043672999,010100001301,0,270613041652,166653,475341,3,0,355,6,2,1,231,8112432,23201,01,00,217,0,0,0,0,7"));
+
+ }
+
+}