aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-05-21 21:20:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-05-21 21:20:45 +1200
commit7b37d4f85a5a2c751f26860ccdb700e3ba42644a (patch)
treee380f62e83fd541aa9c7c66dcf67607ea6226195 /test/org/traccar
parente5549d271325639bae97dc3591ff09bf271cf43c (diff)
downloadtraccar-server-7b37d4f85a5a2c751f26860ccdb700e3ba42644a.tar.gz
traccar-server-7b37d4f85a5a2c751f26860ccdb700e3ba42644a.tar.bz2
traccar-server-7b37d4f85a5a2c751f26860ccdb700e3ba42644a.zip
Implement Haicom protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/HaicomProtocolDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HaicomProtocolDecoderTest.java b/test/org/traccar/protocol/HaicomProtocolDecoderTest.java
new file mode 100644
index 000000000..aca184b4a
--- /dev/null
+++ b/test/org/traccar/protocol/HaicomProtocolDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.traccar.helper.TestDataManager;
+import static org.traccar.helper.DecoderVerifier.verify;
+import org.junit.Test;
+
+public class HaicomProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ HaicomProtocolDecoder decoder = new HaicomProtocolDecoder(null);
+ decoder.setDataManager(new TestDataManager());
+
+ verify(decoder.decode(null, null,
+ "$GPRS123456789012345,602S19A,100915,063515,7240649312041079,0019,3156,111000,10004,0000,11111,00LH#V037"));
+
+ }
+
+}