diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-09 17:30:09 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-09 17:30:09 +1200 |
commit | 8ae36020ce8b9104f77b5f7fd9d69b01ea634af5 (patch) | |
tree | 6f2e1952874d926ca2d4b0b229722d1ba65978e9 /test | |
parent | 75d033f9eca3d6dae808fa5bc9a1c18266e3284a (diff) | |
download | trackermap-server-8ae36020ce8b9104f77b5f7fd9d69b01ea634af5.tar.gz trackermap-server-8ae36020ce8b9104f77b5f7fd9d69b01ea634af5.tar.bz2 trackermap-server-8ae36020ce8b9104f77b5f7fd9d69b01ea634af5.zip |
Add eelink protocol unit test
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/EelinkProtocolDecoderTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java index 5b9abf2ee..c736f33a4 100644 --- a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java +++ b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java @@ -1,11 +1,10 @@ package org.traccar.protocol; -import org.traccar.helper.TestIdentityManager; 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.helper.ChannelBufferTools; +import static org.traccar.helper.DecoderVerifier.verify; public class EelinkProtocolDecoderTest extends ProtocolDecoderTest { @@ -15,6 +14,9 @@ public class EelinkProtocolDecoderTest extends ProtocolDecoderTest { EelinkProtocolDecoder decoder = new EelinkProtocolDecoder(new EelinkProtocol()); assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( + "676701000c002603541880486128290120")))); + + assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( "676701000b001b035418804661834901")))); assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString( |