From 8ae36020ce8b9104f77b5f7fd9d69b01ea634af5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 9 Aug 2015 17:30:09 +1200 Subject: Add eelink protocol unit test --- test/org/traccar/protocol/EelinkProtocolDecoderTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/org') 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 { @@ -14,6 +13,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")))); -- cgit v1.2.3