diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-10-22 16:37:13 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-10-22 16:37:13 +1300 |
commit | 435ae8233c3cca5da88c4ba774b90aff780e9b88 (patch) | |
tree | c35e5102a5ab3ee1e8c10120bd8f69bfa762102c /test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java | |
parent | 5490a0351abc9d6e741baf129300beb2d50051fd (diff) | |
download | trackermap-server-435ae8233c3cca5da88c4ba774b90aff780e9b88.tar.gz trackermap-server-435ae8233c3cca5da88c4ba774b90aff780e9b88.tar.bz2 trackermap-server-435ae8233c3cca5da88c4ba774b90aff780e9b88.zip |
Add unit tests
Diffstat (limited to 'test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java b/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java index b47624a25..758167384 100644 --- a/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java +++ b/test/org/traccar/protocol/SkypatrolProtocolDecoderTest.java @@ -15,6 +15,9 @@ public class SkypatrolProtocolDecoderTest { verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( new int[]{0x00,0x05,0x02,0x10,0x04,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x0D,0x31,0x31,0x34,0x37,0x37,0x35,0x38,0x33,0x00,0xCB,0x00,0x00,0x00,0x00,0x0E,0x11,0x07,0x0C,0x01,0x01,0x84,0xD0,0x32,0xFB,0x38,0x41,0x37,0x00,0x00,0x00,0x00,0x16,0x07,0x2B,0x00,0x00,0x17,0x05,0x00,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x4E,0x0C,0x07,0x11,0x16,0x07,0x2C,0x10,0x59,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x03,0x10,0x02,0x60,0xB7,0x36,0x3B,0x63,0x06,0xC1,0x1A,0x00,0xB7,0x36,0x37,0xF2,0x06,0xBF,0x19,0xB7,0x36,0x37,0xF1,0x06,0xB5,0x0E,0xB7,0x36,0x38,0xB1,0x06,0xBB,0x0B,0xB7,0x36,0x3B,0x61,0x06,0xB8,0x0A,0xB7,0x36,0x37,0xF3,0x06,0xB7,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C})))); + + //verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( + // new int[]{0x00,0x05,0x00,0x03,0x01,0x01,0x38,0x36,0x37,0x38,0x34,0x34,0x30,0x30,0x31,0x37,0x38,0x32,0x33,0x33,0x36,0x42,0x01,0x02,0x00,0x0c,0x00,0x00,0xfa,0x07,0xb5,0xe1,0x01,0x87,0x6c,0x5b,0x0e,0x0a,0x11,0x16,0x06,0x13,0x1c,0x1b,0x5e})))); //Enfora TT8750 //verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( |