diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-20 14:48:58 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-20 14:48:58 +1300 |
commit | 57d9d42a8a6e84a7af2c75a17c3df55850c52288 (patch) | |
tree | 861ef2b1af95de1a80dbd609dd91aa7548f77291 /test/org/traccar | |
parent | 9debdb83c7a00633b6ae751affea787afbd09729 (diff) | |
download | traccar-server-57d9d42a8a6e84a7af2c75a17c3df55850c52288.tar.gz traccar-server-57d9d42a8a6e84a7af2c75a17c3df55850c52288.tar.bz2 traccar-server-57d9d42a8a6e84a7af2c75a17c3df55850c52288.zip |
Decode GT06 LBS data and status
Diffstat (limited to 'test/org/traccar')
-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 a72c709f2..d3a588e48 100644 --- a/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gt06ProtocolDecoderTest.java @@ -1,6 +1,8 @@ package org.traccar.protocol; import org.jboss.netty.buffer.ChannelBuffers; + +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import org.junit.Test; import org.traccar.helper.ChannelBufferTools; @@ -16,7 +18,7 @@ public class Gt06ProtocolDecoderTest extends ProtocolDecoderTest { assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "787811010123456789012345100B3201000171930D0A")))); - assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "78780a13440604000201baaf540d0a")))); verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( |