diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-05-21 21:20:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-05-21 21:20:45 +1200 |
commit | 7b37d4f85a5a2c751f26860ccdb700e3ba42644a (patch) | |
tree | e380f62e83fd541aa9c7c66dcf67607ea6226195 /test/org/traccar/protocol | |
parent | e5549d271325639bae97dc3591ff09bf271cf43c (diff) | |
download | trackermap-server-7b37d4f85a5a2c751f26860ccdb700e3ba42644a.tar.gz trackermap-server-7b37d4f85a5a2c751f26860ccdb700e3ba42644a.tar.bz2 trackermap-server-7b37d4f85a5a2c751f26860ccdb700e3ba42644a.zip |
Implement Haicom protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/HaicomProtocolDecoderTest.java | 20 |
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")); + + } + +} |