diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-24 16:47:07 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-24 16:47:07 +1200 |
commit | 6e2e11c6079243a852f693b4e4f10c07d2e6867b (patch) | |
tree | 2819e8cf58122412158ba57bbe44d647adde08bb /test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java | |
parent | 46140fb82777dbe923269e81056c395c444051ee (diff) | |
download | trackermap-server-6e2e11c6079243a852f693b4e4f10c07d2e6867b.tar.gz trackermap-server-6e2e11c6079243a852f693b4e4f10c07d2e6867b.tar.bz2 trackermap-server-6e2e11c6079243a852f693b4e4f10c07d2e6867b.zip |
New Meiligao message type
Diffstat (limited to 'test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java b/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java index d0fdebc03..1c4252c0f 100644 --- a/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java +++ b/test/org/traccar/protocol/MeiligaoProtocolDecoderTest.java @@ -13,6 +13,12 @@ public class MeiligaoProtocolDecoderTest extends ProtocolDecoderTest { MeiligaoProtocolDecoder decoder = new MeiligaoProtocolDecoder(new MeiligaoProtocol()); + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "24240074630700194707719966009E1F7F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007C3132303334302C3238303630362C323430302E303030302C4E2C31323130302E303030302C458F7E0D0A")))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "24240076220720151fffff99660012b3ab00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007c3135303634382c3233303731352c313931352e37323835362c4e2c30373235322e35333034342c456dd00d0a")))); + assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "24240000123456FFFFFFFF50008B9B0D0A")))); |