aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-30 17:53:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-05-30 17:53:28 +1200
commitb7cb296cf20d6f526f5bf3f59844d13852a8cbac (patch)
treedcf5cab56735fde28e3f07deabafac89392d0d31 /test/org
parent54d9f0a3267fd8cef28c7fb70aba0a445bd820f6 (diff)
downloadtraccar-server-b7cb296cf20d6f526f5bf3f59844d13852a8cbac.tar.gz
traccar-server-b7cb296cf20d6f526f5bf3f59844d13852a8cbac.tar.bz2
traccar-server-b7cb296cf20d6f526f5bf3f59844d13852a8cbac.zip
Implement FlexComm protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/FlexCommProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/FlexCommProtocolDecoderTest.java b/test/org/traccar/protocol/FlexCommProtocolDecoderTest.java
new file mode 100644
index 000000000..393c45793
--- /dev/null
+++ b/test/org/traccar/protocol/FlexCommProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class FlexCommProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ FlexCommProtocolDecoder decoder = new FlexCommProtocolDecoder(new FlexCommProtocol());
+
+ verifyPosition(decoder, text(
+ "7E27865067022408382201705241211301024932197006712794000910022481008234100040002C5002A2200011000000006306941827"));
+
+ }
+
+}