diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-27 15:23:18 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-27 15:23:18 +1200 |
commit | 183c05adf926b59638d854f04b424c2855109f9d (patch) | |
tree | ba178fc5b5bad9e094f5eab42b3f2c9adbda7c5c /test/org/traccar/protocol | |
parent | cf6440ef1ae4f68dc0cdcb1579f9347a938d8675 (diff) | |
download | traccar-server-183c05adf926b59638d854f04b424c2855109f9d.tar.gz traccar-server-183c05adf926b59638d854f04b424c2855109f9d.tar.bz2 traccar-server-183c05adf926b59638d854f04b424c2855109f9d.zip |
Finish Cityeasy implementation
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/CityeasyProtocolDecoderTest.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java b/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java index 1efd68dff..cdb34b817 100644 --- a/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java +++ b/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java @@ -14,8 +14,14 @@ public class CityeasyProtocolDecoderTest extends ProtocolDecoderTest { CityeasyProtocolDecoder decoder = new CityeasyProtocolDecoder(new CityeasyProtocol()); - //verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( - // "5454006135200000000001000332303134313131303039353430392C412C342C4E2C32322E3533373232382C452C3131342E3032323737342C302E312C312E392C35302E363B3436302C302C31303137332C343635322C34310000000B63130D0A")))); + assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "545400153520000000000100010000000111000D0A")))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "5454006135200000000001000332303134313131303039353430392C412C342C4E2C32322E3533373232382C452C3131342E3032323737342C302E312C312E392C35302E363B3436302C302C31303137332C343635322C34310000000B63130D0A")))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "5454006135200000000001000432303134313131303039353330362C412C352C4E2C32322E3533373233352C452C3131342E3032323838312C302E322C312E362C35342E313B3436302C302C31303137332C343635322C343100000045EC620D0A")))); } |