aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-04-08 20:30:25 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-04-08 20:30:25 +1200
commit54bc7a8f1dae8c5f8e2652d42c63211e2d3f16ff (patch)
tree9510c6d9dd048fddc9fe156fab847637b8836c96
parent53672c02969da6208a92c43059147ca3c5d8653a (diff)
downloadtrackermap-server-54bc7a8f1dae8c5f8e2652d42c63211e2d3f16ff.tar.gz
trackermap-server-54bc7a8f1dae8c5f8e2652d42c63211e2d3f16ff.tar.bz2
trackermap-server-54bc7a8f1dae8c5f8e2652d42c63211e2d3f16ff.zip
Add H02 test case
-rw-r--r--test/org/traccar/protocol/H02ProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
index e39c88671..b42548491 100644
--- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
@@ -73,6 +73,9 @@ public class H02ProtocolDecoderTest {
verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
"*HQ,353505220903211,V1,140817,A,5239.3538,N,01003.5292,E,21.03,312,221013,FFFBFFFF,106,14, 203,1cd#", Charset.defaultCharset())));
+ verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
+ "*HQ,356823035368767,V1,083618,A,0955.6392,N,07809.0796,E,0.00,0,070414,FFFBFFFF,194,3b5, 71,c9a9#", Charset.defaultCharset())));
+
int[] buf1 = {0x24,0x27,0x05,0x17,0x11,0x09,0x21,0x33,0x39,0x14,0x06,0x13,0x50,0x02,0x58,0x49,0x00,0x01,0x43,0x37,0x82,0x2e,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x00,0x00};
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf1))));