diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-29 12:38:26 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-29 12:38:26 +1200 |
commit | 9ab536ca8c4e1ad850cb5fa08bbe99f14676b535 (patch) | |
tree | ba56d09083f55592fbc0b6b899c9655a5ea72a59 /test/org/traccar/protocol/Gt06ProtocolDecoderTest.java | |
parent | 2e9842ebfa6d8b4d053d66c437a11190a0f49e6e (diff) | |
download | trackermap-server-9ab536ca8c4e1ad850cb5fa08bbe99f14676b535.tar.gz trackermap-server-9ab536ca8c4e1ad850cb5fa08bbe99f14676b535.tar.bz2 trackermap-server-9ab536ca8c4e1ad850cb5fa08bbe99f14676b535.zip |
Fix GT06 protocol decoder (fix #1308)
Diffstat (limited to 'test/org/traccar/protocol/Gt06ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/Gt06ProtocolDecoderTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java index 3570eb0d4..f8276b123 100644 --- a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java @@ -1,6 +1,5 @@ package org.traccar.protocol; -import org.traccar.helper.TestIdentityManager; import org.jboss.netty.buffer.ChannelBuffers; import static org.junit.Assert.assertNull; import org.junit.Test; @@ -16,6 +15,9 @@ public class Gt06ProtocolDecoderTest extends ProtocolDecoderTest { assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "787811010123456789012345100B3201000171930D0A")))); + + verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "787823120f081b121d37cb01c8e2cc08afd3c020d50201940701d600a1190041ee100576d1470d0a")))); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "78781F120B081D112E10CC027AC7EB0C46584900148F01CC00287D001FB8000380810D0A")))); |