diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-17 14:02:16 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-17 14:02:16 +1200 |
commit | 04afe342615995e773d848be68eef40dc9925197 (patch) | |
tree | c59c6cbadf3fa47f9d51367537523a75d78abae9 | |
parent | 9b4b52b42d9b6537e2e526ebdb93fe036475c9cb (diff) | |
download | trackermap-server-04afe342615995e773d848be68eef40dc9925197.tar.gz trackermap-server-04afe342615995e773d848be68eef40dc9925197.tar.bz2 trackermap-server-04afe342615995e773d848be68eef40dc9925197.zip |
Add new Riti unit test (fix #468)
-rw-r--r-- | test/org/traccar/protocol/RitiProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/RitiProtocolDecoderTest.java b/test/org/traccar/protocol/RitiProtocolDecoderTest.java index 57a080c91..80c7c7f19 100644 --- a/test/org/traccar/protocol/RitiProtocolDecoderTest.java +++ b/test/org/traccar/protocol/RitiProtocolDecoderTest.java @@ -16,6 +16,9 @@ public class RitiProtocolDecoderTest extends ProtocolDecoderTest { RitiProtocolDecoder decoder = new RitiProtocolDecoder(new RitiProtocol()); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString( + "3b28a2a2056315316d4000008100000000000000005f710000244750524d432c3138303535332e3030302c412c353532342e383437312c4e2c30313133342e313837382c452c302e30302c2c3032313231332c2c2c412a37340d0a00000000000000000000000000000000040404")))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, ChannelBufferTools.convertHexString( "3b2864a3056300006d40000003000000000000000000000000244750524d432c3231313734332e3030302c412c313335372e333637352c4e2c31303033362e363939322c452c302e30302c2c3031303931342c2c2c412a37380d0a00000000000000000000000000000000040404")))); } |