diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-04-19 12:16:40 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-04-19 12:16:40 +1200 |
commit | 7b9f06cfc4b453693e3f6abec00a59a68f3456a3 (patch) | |
tree | b6b337c290e8edcf569815d159ac80840ed8e548 /test | |
parent | 9bb9a95fb00784d38af66e37ceb5707b8e499fb6 (diff) | |
download | traccar-server-7b9f06cfc4b453693e3f6abec00a59a68f3456a3.tar.gz traccar-server-7b9f06cfc4b453693e3f6abec00a59a68f3456a3.tar.bz2 traccar-server-7b9f06cfc4b453693e3f6abec00a59a68f3456a3.zip |
Add H02 unit test
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/H02ProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java index b42548491..d2a602744 100644 --- a/test/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -88,6 +88,9 @@ public class H02ProtocolDecoderTest { 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)))); + int[] buf5 = {0x24,0x27,0x05,0x17,0x03,0x08,0x20,0x32,0x14,0x18,0x04,0x14,0x23,0x30,0x78,0x79,0x00,0x04,0x63,0x21,0x37,0x92,0x00,0x00,0x56,0xff,0xff,0xf9,0xff,0xff,0x00,0x00}; + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf5)))); + } } |