From d4e4948bfce5b088f505ff9c89dd8baad34ed16c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 18 Sep 2015 10:59:56 +1200 Subject: Improve TK103 decoder pattern --- test/org/traccar/protocol/Tk103ProtocolDecoderTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java index 0cfd790d8..452745189 100644 --- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java @@ -10,6 +10,12 @@ public class Tk103ProtocolDecoderTest extends ProtocolDecoderTest { public void testDecode() throws Exception { Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new Tk103Protocol()); + + verify(decoder.decode(null, null, + "(088048003342BP05354188048003342150917A1352.9801N10030.9050E000.0103115265.5600010000L000003F9)")); + + verify(decoder.decode(null, null, + "(088048003342BR00150917A1352.9801N10030.9050E000.0103224000.0000010000L000003F9)")); verify(decoder.decode(null, null, "(088048003342BR00150807A1352.9871N10030.9084E000.0110718000.0001010000L00000000)")); -- cgit v1.2.3