diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-21 12:58:54 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-21 12:58:54 +1300 |
commit | 00116baebfd152e1e4df7835673d1f6fb443e862 (patch) | |
tree | b8ffb10d4da9817843eb2f35d557f9c54565589c /test/org/traccar/protocol | |
parent | 0ebf3a50268bc6e7d1937b376a5a97f71f7608e7 (diff) | |
download | traccar-server-00116baebfd152e1e4df7835673d1f6fb443e862.tar.gz traccar-server-00116baebfd152e1e4df7835673d1f6fb443e862.tar.bz2 traccar-server-00116baebfd152e1e4df7835673d1f6fb443e862.zip |
Add Meiligao test case
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java b/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java index 9a00b487e..73f1d9a93 100644 --- a/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java +++ b/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java @@ -16,6 +16,9 @@ public class MeiligaoProtocolDecoderTest { assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( new int[]{0x24,0x24,0x00,0x00,0x12,0x34,0x56,0xFF,0xFF,0xFF,0xFF,0x50,0x00,0x8B,0x9B,0x0D,0x0A})))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( + new int[]{0x24,0x24,0x00,0x6e,0x24,0x11,0x20,0x14,0x1f,0xff,0xff,0x99,0x55,0x30,0x39,0x33,0x39,0x31,0x30,0x2e,0x30,0x30,0x2c,0x41,0x2c,0x31,0x39,0x31,0x34,0x2e,0x37,0x37,0x37,0x36,0x35,0x2c,0x4e,0x2c,0x30,0x37,0x32,0x35,0x30,0x2e,0x36,0x38,0x30,0x37,0x32,0x2c,0x45,0x2c,0x30,0x2e,0x30,0x35,0x31,0x2c,0x2c,0x32,0x30,0x31,0x32,0x31,0x34,0x2c,0x2c,0x2c,0x44,0x2a,0x37,0x35,0x7c,0x30,0x2e,0x38,0x32,0x7c,0x32,0x2e,0x38,0x7c,0x30,0x30,0x30,0x30,0x7c,0x30,0x30,0x30,0x30,0x2c,0x30,0x30,0x30,0x30,0x7c,0x30,0x31,0x30,0x38,0x33,0x37,0x34,0x33,0x31,0x1d,0x17,0x0d,0x0a})))); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray( new int[]{0x24,0x24,0x00,0x00,0x12,0x34,0x56,0xFF,0xFF,0xFF,0xFF,0x99,0x55,0x30,0x33,0x35,0x36,0x34,0x34,0x2E,0x30,0x30,0x30,0x2C,0x41,0x2C,0x32,0x32,0x33,0x32,0x2E,0x36,0x30,0x38,0x33,0x2C,0x4E,0x2C,0x31,0x31,0x34,0x30,0x34,0x2E,0x38,0x31,0x33,0x37,0x2C,0x45,0x2C,0x30,0x2E,0x30,0x30,0x2C,0x2C,0x30,0x31,0x30,0x38,0x30,0x39,0x2C,0x2C,0x2A,0x31,0x43,0x7C,0x31,0x31,0x2E,0x35,0x7C,0x31,0x39,0x34,0x7C,0x30,0x30,0x30,0x30,0x7C,0x30,0x30,0x30,0x30,0x2C,0x30,0x30,0x30,0x30,0x69,0x62,0x0D,0x0A})))); |