From ba8ece8a5b1c784f96c306e3fcbe6c612a1e4f97 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 5 Sep 2012 22:31:16 +0400 Subject: Augment tk103 protocol --- test/org/traccar/protocol/Tk103ProtocolDecoderTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java index b30ea179f..9d77d4dc2 100644 --- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java @@ -1,6 +1,7 @@ package org.traccar.protocol; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; import org.junit.Test; public class Tk103ProtocolDecoderTest { @@ -10,6 +11,8 @@ public class Tk103ProtocolDecoderTest { Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new TestDataManager(), 0); + assertNull(decoder.decode(null, null, "(090411121854BP0000001234567890HSO")); + assertNotNull(decoder.decode(null, null, "(035988863964BP05000035988863964110524A4241.7977N02318.7561E000.0123536356.5100000000L000946BB")); -- cgit v1.2.3