aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/RitiProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-27 12:23:35 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-27 12:23:35 +1300
commit75aa9f8ba896fe88f7842126081b367872a26c46 (patch)
tree26390c9a42fb2324b525083dab9c28df4e368298 /test/org/traccar/protocol/RitiProtocolDecoderTest.java
parent0a7bfdfbcec8dbb587882c63919456a3855930b4 (diff)
downloadtrackermap-server-75aa9f8ba896fe88f7842126081b367872a26c46.tar.gz
trackermap-server-75aa9f8ba896fe88f7842126081b367872a26c46.tar.bz2
trackermap-server-75aa9f8ba896fe88f7842126081b367872a26c46.zip
Update binary test cases
Diffstat (limited to 'test/org/traccar/protocol/RitiProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/RitiProtocolDecoderTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/RitiProtocolDecoderTest.java b/test/org/traccar/protocol/RitiProtocolDecoderTest.java
index e006689b5..b949e1376 100644
--- a/test/org/traccar/protocol/RitiProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/RitiProtocolDecoderTest.java
@@ -14,9 +14,9 @@ public class RitiProtocolDecoderTest {
public void testDecode() throws Exception {
RitiProtocolDecoder decoder = new RitiProtocolDecoder(new TestDataManager(), null, null);
-
- verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertArray(
- new int[] {0x3b,0x28,0x64,0xa3,0x05,0x63,0x00,0x00,0x6d,0x40,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x47,0x50,0x52,0x4d,0x43,0x2c,0x32,0x31,0x31,0x37,0x34,0x33,0x2e,0x30,0x30,0x30,0x2c,0x41,0x2c,0x31,0x33,0x35,0x37,0x2e,0x33,0x36,0x37,0x35,0x2c,0x4e,0x2c,0x31,0x30,0x30,0x33,0x36,0x2e,0x36,0x39,0x39,0x32,0x2c,0x45,0x2c,0x30,0x2e,0x30,0x30,0x2c,0x2c,0x30,0x31,0x30,0x39,0x31,0x34,0x2c,0x2c,0x2c,0x41,0x2a,0x37,0x38,0x0d,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04}))));
+
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString(
+ "3b2864a3056300006d40000003000000000000000000000000244750524d432c3231313734332e3030302c412c313335372e333637352c4e2c31303033362e363939322c452c302e30302c2c3031303931342c2c2c412a37380d0a00000000000000000000000000000000040404"))));
}