From d2c2f9ded136ffa594ec13f4d426d7e7c5b223cd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 21 Apr 2015 12:00:10 +1200 Subject: Add more TK103 test cases --- .../traccar/protocol/Tk103ProtocolDecoderTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java index f4962fac0..be1c8929b 100644 --- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java @@ -53,6 +53,27 @@ public class Tk103ProtocolDecoderTest { verify(decoder.decode(null, null, "(864768010009188,BP05,271114,V,4012.19376N,00824.05638E,000.0,154436,000.0")); + verify(decoder.decode(null, null, + "(013632651491,BP05,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)")); + + verify(decoder.decode(null, null, + "(013632651491,ZC07,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)")); + + verify(decoder.decode(null, null, + "(013632651491,ZC11,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)")); + + verify(decoder.decode(null, null, + "(013632651491,ZC12,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)")); + + verify(decoder.decode(null, null, + "(013632651491,ZC13,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)")); + + verify(decoder.decode(null, null, + "(013632651491,ZC17,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)")); + + assertNull(decoder.decode(null, null, + "(013632651491,ZC20,040613,040137,6,42,112,0)")); + } } -- cgit v1.2.3