aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-05-15 17:08:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-05-15 17:08:04 +1200
commit723bb89389f4de335a9a6527da62fb58c18b154c (patch)
treebcbcbdad088de13abdae221557498e965911ba24 /test
parent2bf146c30d332aad1eaa856d5db026290e02e089 (diff)
downloadtrackermap-server-723bb89389f4de335a9a6527da62fb58c18b154c.tar.gz
trackermap-server-723bb89389f4de335a9a6527da62fb58c18b154c.tar.bz2
trackermap-server-723bb89389f4de335a9a6527da62fb58c18b154c.zip
Implement Telemax protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/TelemaxProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TelemaxProtocolDecoderTest.java b/test/org/traccar/protocol/TelemaxProtocolDecoderTest.java
new file mode 100644
index 000000000..2a26386d7
--- /dev/null
+++ b/test/org/traccar/protocol/TelemaxProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class TelemaxProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ TelemaxProtocolDecoder decoder = new TelemaxProtocolDecoder(new TelemaxProtocol());
+
+ verifyNull(decoder, text(
+ "%067374070128"));
+
+ verifyPositions(decoder, text(
+ "Y000007C6999999067374074649003C00A7018074666F60D66818051304321900000000C5"));
+
+ }
+
+}