aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-29 12:38:26 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-29 12:38:26 +1200
commit9ab536ca8c4e1ad850cb5fa08bbe99f14676b535 (patch)
treeba56d09083f55592fbc0b6b899c9655a5ea72a59 /test
parent2e9842ebfa6d8b4d053d66c437a11190a0f49e6e (diff)
downloadtraccar-server-9ab536ca8c4e1ad850cb5fa08bbe99f14676b535.tar.gz
traccar-server-9ab536ca8c4e1ad850cb5fa08bbe99f14676b535.tar.bz2
traccar-server-9ab536ca8c4e1ad850cb5fa08bbe99f14676b535.zip
Fix GT06 protocol decoder (fix #1308)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gt06ProtocolDecoderTest.java4
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"))));