aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-12 17:34:02 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-12 17:34:02 -0700
commitd4bbb39025acc534453b8df7444f8d1b761c669e (patch)
treee2806abe7bb123dff197991c4dd7bfe70d78641e /src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java
parent50fb8ee8347481abec7aeb5431426ef12dfb0617 (diff)
downloadtrackermap-server-d4bbb39025acc534453b8df7444f8d1b761c669e.tar.gz
trackermap-server-d4bbb39025acc534453b8df7444f8d1b761c669e.tar.bz2
trackermap-server-d4bbb39025acc534453b8df7444f8d1b761c669e.zip
Implement FutureWay protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java
new file mode 100644
index 000000000..951b3bb20
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/FutureWayProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class FutureWayProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ FutureWayProtocolDecoder decoder = new FutureWayProtocolDecoder(null);
+
+ verifyNull(decoder, text(
+ "410000003F2000020,IMEI:354828100126461,battery level:6,network type:7,CSQ:236F42"));
+
+ verifyPosition(decoder, text(
+ "410000009BA00004GPS:V,200902093333,0.000000N,0.000000E,0.000,0.000\r\nWIFI:3,1|90-67-1C-F7-21-6C|52&2|80-89-17-C6-79-A0|54&3|40-F4-20-EF-DD-2A|58\r\nLBS:460,0,46475066,69\r\n6A42"));
+
+ }
+
+}