aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-26 06:11:30 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-26 06:11:30 +1200
commit9a13d2162106d975b631d9a50862c628415d7d76 (patch)
treea182bf79d47c021f770af9114e41910cf94e987d /test
parent102b17df3abd6126404089384e214bda28b604fe (diff)
downloadtrackermap-server-9a13d2162106d975b631d9a50862c628415d7d76.tar.gz
trackermap-server-9a13d2162106d975b631d9a50862c628415d7d76.tar.bz2
trackermap-server-9a13d2162106d975b631d9a50862c628415d7d76.zip
Implement Raveon communication protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/RaveonProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/RaveonProtocolDecoderTest.java b/test/org/traccar/protocol/RaveonProtocolDecoderTest.java
new file mode 100644
index 000000000..fdaf0939d
--- /dev/null
+++ b/test/org/traccar/protocol/RaveonProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class RaveonProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ RaveonProtocolDecoder decoder = new RaveonProtocolDecoder(new RaveonProtocol());
+
+ verifyPosition(decoder, text(
+ "$PRAVE,0001,0001,3308.9051,-11713.1164,195348,1,10,168,31,13.3,3,-83,0,0,,1003.4*66"));
+
+ }
+
+}