diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-31 11:30:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-31 11:30:39 +1300 |
commit | c241127ab32eab9a63cc04fdbd99c08fa0e7b25f (patch) | |
tree | cb7579dc6a3779aa23b23262cd6611d34e1a1eb0 /test | |
parent | faeecdffcf78783ee030d0f9060e1f7656f9f707 (diff) | |
download | trackermap-server-c241127ab32eab9a63cc04fdbd99c08fa0e7b25f.tar.gz trackermap-server-c241127ab32eab9a63cc04fdbd99c08fa0e7b25f.tar.bz2 trackermap-server-c241127ab32eab9a63cc04fdbd99c08fa0e7b25f.zip |
Fix Orion negative coordites
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/OrionProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/OrionProtocolDecoderTest.java b/test/org/traccar/protocol/OrionProtocolDecoderTest.java index 6c3d1b55d..dd7930c0f 100644 --- a/test/org/traccar/protocol/OrionProtocolDecoderTest.java +++ b/test/org/traccar/protocol/OrionProtocolDecoderTest.java @@ -16,6 +16,9 @@ public class OrionProtocolDecoderTest { OrionProtocolDecoder decoder = new OrionProtocolDecoder(new TestDataManager(), null, null); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertArray( + new int[] {0x50,0x57,0x00,0x01,0x37,0xbf,0x62,0x36,0x23,0x5a,0x03,0x31,0xb5,0xc6,0xe4,0x02,0xa3,0xb5,0xec,0xff,0x51,0x02,0x98,0x00,0x03,0x00,0x0e,0x0c,0x1d,0x17,0x29,0x36,0x08,0x0e,0x0c,0x1d,0x17,0x29,0x36,0xb0,0x3b,0x01,0x00,0x08,0x82,0x05,0x00,0x00,0x00,0x8e,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x8c,0x03,0x00,0x94,0x05,0x00,0x00,0x00,0x84,0x03,0x00,0x85,0x03,0x00,0x03,0x06,0x76,0x00,0x90,0x01,0x13,0x15,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xa4,0xc8})))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertArray( new int[] {0x50,0x57,0x00,0x41,0x07,0x36,0x7C,0x24,0x2B,0x44,0x09,0x01,0xAD,0xE9,0x7D,0x01,0x63,0x14,0x3B,0x07,0xB0,0x03,0x00,0x00,0x00,0x00,0x0D,0x04,0x19,0x17,0x38,0x2D,0x00,0x0B,0x01,0x01,0x00,0x05,0x11,0x00,0x00,0x00,0x00,0x06,0x82,0x05,0x00,0x00,0x00,0x8E,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x8C,0x03,0x00,0x84,0x03,0x00,0x85,0x03,0x00,0x09,0x0A,0x00,0x00,0x00,0x00,0x48,0x01,0x00,0x00,0x00,0x8A,0xFC})))); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertArray( |