aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 13:57:54 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 13:57:54 -0800
commit534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28 (patch)
tree262a055b97173ccf3be42aeab995105eb4eadac2 /src/test/java/org
parent2c399d684178dc0a22b1c8e50ad6eff000c41062 (diff)
downloadtrackermap-server-534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28.tar.gz
trackermap-server-534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28.tar.bz2
trackermap-server-534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28.zip
Implement Motor protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/MotorProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MotorProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MotorProtocolDecoderTest.java
new file mode 100644
index 000000000..60351d497
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/MotorProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class MotorProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ MotorProtocolDecoder decoder = new MotorProtocolDecoder(null);
+
+ verifyPosition(decoder, text(
+ "341200007E7E00007E7E020301803955352401161766210162090501010108191625132655351234567F12345F"));
+
+ }
+
+}