diff options
Diffstat (limited to 'test/org/traccar/protocol/M2mProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/M2mProtocolDecoderTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/org/traccar/protocol/M2mProtocolDecoderTest.java b/test/org/traccar/protocol/M2mProtocolDecoderTest.java index fe6398f32..0f2c3c370 100644 --- a/test/org/traccar/protocol/M2mProtocolDecoderTest.java +++ b/test/org/traccar/protocol/M2mProtocolDecoderTest.java @@ -1,9 +1,9 @@ package org.traccar.protocol; import org.jboss.netty.buffer.ChannelBuffers; -import static org.traccar.helper.DecoderVerifier.verify; -import static org.junit.Assert.assertNull; + import org.junit.Test; +import org.traccar.ProtocolDecoderTest; import org.traccar.helper.ChannelBufferTools; public class M2mProtocolDecoderTest extends ProtocolDecoderTest { @@ -13,11 +13,11 @@ public class M2mProtocolDecoderTest extends ProtocolDecoderTest { M2mProtocolDecoder decoder = new M2mProtocolDecoder(new M2mProtocol()); - assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( - "235A3C2A2624215C287D70212A21254C7C6421220B0B0B")))); + verifyNothing(decoder, binary( + "235A3C2A2624215C287D70212A21254C7C6421220B0B0B")); - verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( - "A6E12C2AAADA4628326B2059576E30202A2FE85D20200B")))); + verifyPosition(decoder, binary( + "A6E12C2AAADA4628326B2059576E30202A2FE85D20200B")); } |