aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-17 16:41:58 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-17 16:41:58 +1200
commitef234432c20772b1eaf7fccf6bab7fa536fb47db (patch)
tree1dc0af0bf62ce9265a4064a3e43eacb54dc798f2 /test/org
parent21be926af517a09d91cb39fde45fb18a1a1cdfe9 (diff)
downloadtraccar-server-ef234432c20772b1eaf7fccf6bab7fa536fb47db.tar.gz
traccar-server-ef234432c20772b1eaf7fccf6bab7fa536fb47db.tar.bz2
traccar-server-ef234432c20772b1eaf7fccf6bab7fa536fb47db.zip
Implement OIGO device protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/OigoProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/OigoProtocolDecoderTest.java b/test/org/traccar/protocol/OigoProtocolDecoderTest.java
new file mode 100644
index 000000000..b75f3162b
--- /dev/null
+++ b/test/org/traccar/protocol/OigoProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class OigoProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ OigoProtocolDecoder decoder = new OigoProtocolDecoder(new OigoProtocol());
+
+ verifyPosition(decoder, binary(
+ "7e004200000014631000258257000000ffff02d0690e000220690e0002200696dbd204bdfde31a070000b307101135de106e05f500000000010908010402200104ffff8001"));
+
+ verifyPosition(decoder, binary(
+ "7e004200000014631000258257000000ffff02d1690e00051f690e00051f0696dbd204bdfde31a070000b307100f35c0106305f500000000010908010402200104ffff8001"));
+
+ }
+
+}