diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-10-08 23:56:23 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-10-08 23:56:23 +1300 |
commit | a4c475c833c07713d58669fea4d069563ee4bc26 (patch) | |
tree | 2466ecc339b2faf935ce227d9b4b2988a723a87e /test/org/traccar/protocol | |
parent | f7f7d55d32b91fedcf60ef06b43291c19967cb01 (diff) | |
download | traccar-server-a4c475c833c07713d58669fea4d069563ee4bc26.tar.gz traccar-server-a4c475c833c07713d58669fea4d069563ee4bc26.tar.bz2 traccar-server-a4c475c833c07713d58669fea4d069563ee4bc26.zip |
Add gator unit test
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/GatorProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GatorProtocolDecoderTest.java b/test/org/traccar/protocol/GatorProtocolDecoderTest.java index 6f1d5b5ea..fb49013b8 100644 --- a/test/org/traccar/protocol/GatorProtocolDecoderTest.java +++ b/test/org/traccar/protocol/GatorProtocolDecoderTest.java @@ -16,6 +16,9 @@ public class GatorProtocolDecoderTest { int[] buf1 = {0x24,0x24,0x81,0x00,0x23,0x0C,0xA2,0x32,0x85,0x10,0x03,0x06,0x14,0x59,0x07,0x02,0x23,0x46,0x90,0x11,0x35,0x29,0x47,0x00,0x00,0x00,0x00,0xC0,0x40,0x01,0x01,0x2C,0x0E,0x11,0x00,0x00,0x00,0x21,0xCB,0x0D}; assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf1)))); + int[] buf2 = {0x24,0x24,0x80,0x00,0x23,0xc2,0x63,0x1e,0x00,0x11,0x12,0x20,0x10,0x49,0x09,0x83,0x32,0x68,0x64,0x87,0x03,0x80,0x41,0x00,0x00,0x00,0x00,0xc0,0x47,0x00,0x00,0x00,0x0b,0x4e,0x00,0x00,0x00,0x00,0x55,0x0d}; + assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf2)))); + } } |