aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-07 17:27:39 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-07 17:27:39 +1300
commit2232f5387b7d2126a86f725231454b687f3913d0 (patch)
tree7ce2ccb8074ae71f7433dfea837ac6e3e467877b /test/org/traccar/protocol/AplicomProtocolDecoderTest.java
parent68e178c43d8619b8b13aa78828c75e788d4d2621 (diff)
downloadtrackermap-server-2232f5387b7d2126a86f725231454b687f3913d0.tar.gz
trackermap-server-2232f5387b7d2126a86f725231454b687f3913d0.tar.bz2
trackermap-server-2232f5387b7d2126a86f725231454b687f3913d0.zip
Update binary test cases
Diffstat (limited to 'test/org/traccar/protocol/AplicomProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/AplicomProtocolDecoderTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/org/traccar/protocol/AplicomProtocolDecoderTest.java b/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
index ad2b2ab38..cdbc4dab9 100644
--- a/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/AplicomProtocolDecoderTest.java
@@ -13,11 +13,11 @@ public class AplicomProtocolDecoderTest {
AplicomProtocolDecoder decoder = new AplicomProtocolDecoder(new TestDataManager(), null, null);
- int[] buf1 = {0x44,0xC2,0x01,0x43,0x72,0x07,0x29,0xD6,0x84,0x00,0x43,0x03,0x1f,0xff,0x71,0x91,0xC0,0x45,0x0e,0xf9,0x06,0x45,0x0e,0xf9,0x06,0x03,0xb2,0x0b,0x80,0x03,0xb2,0x0b,0x80,0x06,0x64,0x65,0xb3,0x87,0x0c,0xe3,0x0f,0x01,0x0c,0xe3,0x0c,0xe3,0x00,0x32,0x00,0x00,0x15,0x20,0x00,0x00,0x00,0x03,0x0a,0xa2,0x00,0x00,0x3b,0x13,0x00,0x00,0x00,0x32,0x03,0x00,0x00,0x0b,0xcb,0x17,0xac,0xff,0x00,0x99,0x00,0x01,0x86,0xa0,0x02};
- verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf1))));
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "44C20143720729D6840043031fff7191C0450ef906450ef90603b20b8003b20b80066465b3870ce30f010ce30ce3003200001520000000030aa200003b13000000320300000bcb17acff0099000186a002"))));
- int[] buf2 = {0x44,0x01,0x29,0xD6,0x84,0x00,0x2b,0x07,0x00,0xC0,0x45,0x0e,0xf9,0x06,0x45,0x0e,0xf9,0x06,0x03,0xb2,0x0b,0x80,0x03,0xb2,0x0b,0x80,0x06,0x64,0x65,0xb3,0x87,0x0c,0xe3,0x0f,0x01,0x0c,0xe3,0x0c,0xe3,0x00,0x00,0x3b,0x13,0x03,0x00,0x00,0x0b,0xcb,0x17,0xa};
- verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf2))));
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "440129D684002b0700C0450ef906450ef90603b20b8003b20b80066465b3870ce30f010ce30ce300003b130300000bcb170a"))));
}