aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-04 07:24:06 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-04 07:24:06 +1200
commit99fd421c76c8e7491095a91630516f6d2db27034 (patch)
treed010a671c22e2c91e3ba6e50dee069cac38e0dc1 /test/org/traccar
parentd0ed5e6964a5e44793b8c72106f09e4ce147f47d (diff)
downloadtraccar-server-99fd421c76c8e7491095a91630516f6d2db27034.tar.gz
traccar-server-99fd421c76c8e7491095a91630516f6d2db27034.tar.bz2
traccar-server-99fd421c76c8e7491095a91630516f6d2db27034.zip
Implement GenX protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/GenxProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GenxProtocolDecoderTest.java b/test/org/traccar/protocol/GenxProtocolDecoderTest.java
new file mode 100644
index 000000000..5e99b8fb8
--- /dev/null
+++ b/test/org/traccar/protocol/GenxProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class GenxProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ GenxProtocolDecoder decoder = new GenxProtocolDecoder(new GenxProtocol());
+
+ verifyPosition(decoder, text(
+ "000036004130,08/31/2017 17:24:13,45.47275,-73.65491,5,19,117,1.14,147,ON,1462,0,6,N,0,0.000,-95.0,-1.0,0,0.0000,0.0000,0.000,0,0.00,0.00,0.00,NA,U,UUU,0,-95.0,U"));
+
+ verifyPosition(decoder, text(
+ "000036004130,08/31/2017 17:24:37,45.47257,-73.65506,3,0,117,1.14,124,ON,1489,0,5,N,0,0.000,-95.0,-1.0,0,0.0000,0.0000,0.000,0,0.00,0.00,0.00,NA,U,UUU,0,-95.0,U"));
+
+ }
+
+}