diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-28 13:29:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-28 13:29:02 +1200 |
commit | f80d5098d46c4716b26565c6721cbfc54e10521a (patch) | |
tree | 0ecf4aa6ea22b700183882f98c8c04becb93a87e /test | |
parent | eb0dd63b1bcdb509ca422be3367ef57790175f01 (diff) | |
download | trackermap-server-f80d5098d46c4716b26565c6721cbfc54e10521a.tar.gz trackermap-server-f80d5098d46c4716b26565c6721cbfc54e10521a.tar.bz2 trackermap-server-f80d5098d46c4716b26565c6721cbfc54e10521a.zip |
Add Ruptela test case
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/RuptelaProtocolDecoderTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/RuptelaProtocolDecoderTest.java b/test/org/traccar/protocol/RuptelaProtocolDecoderTest.java index ffa59d738..76c738251 100644 --- a/test/org/traccar/protocol/RuptelaProtocolDecoderTest.java +++ b/test/org/traccar/protocol/RuptelaProtocolDecoderTest.java @@ -11,7 +11,10 @@ public class RuptelaProtocolDecoderTest extends ProtocolDecoderTest { public void testDecode() throws Exception { RuptelaProtocolDecoder decoder = new RuptelaProtocolDecoder(null); - + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "00560003116e7438a7a50100015565cbb9000020fd21300f113f4600005f000600090d090805011b13cf00020003001c012029ad00041d31dd1e0ebd160000c50000047200000000d0000000004100016a2a960000a5a300c9ee")))); + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "00a10003116e7438a7a5010002553dddbe000020fddaff0f12289b007200000600000c070805011b18cf00020003001c01201dad01041d32d81e0d7d160000c50000047200000000d000000000410000b1ae960000a5a300553dddd4000020fdd96f0f122bfe005c16f80700050b090805011b18cf00020003001c01201ead01041d338a1e0d8d160000c50000047200000000d000000000410000b1bd960000a5a3001681")))); |