aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-19 12:55:17 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-19 12:55:17 +1300
commit591c6b74e8449f7d35c6c464e96b58f6d621bd6c (patch)
tree3c3e00a69b8510f409bc4dea2c8ef4d0973f9be2 /test
parentdac5c6923044572b0714e29dfae650888332c920 (diff)
downloadtrackermap-server-591c6b74e8449f7d35c6c464e96b58f6d621bd6c.tar.gz
trackermap-server-591c6b74e8449f7d35c6c464e96b58f6d621bd6c.tar.bz2
trackermap-server-591c6b74e8449f7d35c6c464e96b58f6d621bd6c.zip
Implement Homtecs communication protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/HomtecsProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HomtecsProtocolDecoderTest.java b/test/org/traccar/protocol/HomtecsProtocolDecoderTest.java
new file mode 100644
index 000000000..5b70453e0
--- /dev/null
+++ b/test/org/traccar/protocol/HomtecsProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class HomtecsProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ HomtecsProtocolDecoder decoder = new HomtecsProtocolDecoder(new HomtecsProtocol());
+
+ verifyPosition(decoder, text(
+ "strommabus939_R01272028,160217,191003.00,06,5540.12292,N,01237.49814,E,0.391,,1,1.27,1.2"));
+
+ }
+
+}