aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-01-05 13:17:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-01-05 13:17:44 +1300
commit6575ff8587bb1507cab8847dd3f6e545a88ae225 (patch)
treea80db13c0b9ffef63435ee735c3b97bbb92111f1 /test
parentd5be71c70bfb2ba608c2e0587d21ac6dc538ca4e (diff)
downloadtrackermap-server-6575ff8587bb1507cab8847dd3f6e545a88ae225.tar.gz
trackermap-server-6575ff8587bb1507cab8847dd3f6e545a88ae225.tar.bz2
trackermap-server-6575ff8587bb1507cab8847dd3f6e545a88ae225.zip
Fix H02 binary decoder
Diffstat (limited to 'test')
-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 3ad601cc9..e39c88671 100644
--- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java
@@ -82,6 +82,9 @@ public class H02ProtocolDecoderTest {
int[] buf3 = {0x24,0x10,0x30,0x73,0x10,0x01,0x05,0x03,0x16,0x22,0x09,0x02,0x22,0x12,0x87,0x45,0x00,0x11,0x34,0x66,0x57,0x4C,0x01,0x40,0x28,0xff,0xff,0xfb,0xff,0xff,0x00,0x00};
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf3))));
+ int[] buf4 = {0x24,0x41,0x09,0x00,0x13,0x45,0x08,0x31,0x25,0x04,0x01,0x14,0x50,0x47,0x88,0x80,0x00,0x00,0x85,0x54,0x65,0x0e,0x00,0x00,0x00,0xff,0xff,0xf9,0xff,0xff,0x00,0x10,0x06,0x00,0x00,0x00,0x00,0x01,0x06,0x02,0x02,0x99,0x10,0x9c,0x01};
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf4))));
+
}
}