From ba1ce052ba5ed33a1110448f5857e8e7e2e101d0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 28 Oct 2015 10:56:31 +1300 Subject: Add Atrack unit test case --- test/org/traccar/protocol/AtrackProtocolDecoderTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/AtrackProtocolDecoderTest.java b/test/org/traccar/protocol/AtrackProtocolDecoderTest.java index 503998ca8..882501e9e 100644 --- a/test/org/traccar/protocol/AtrackProtocolDecoderTest.java +++ b/test/org/traccar/protocol/AtrackProtocolDecoderTest.java @@ -15,6 +15,10 @@ public class AtrackProtocolDecoderTest extends ProtocolDecoderTest { verifyNothing(decoder, binary( "fe0200014104d8f196820001")); + // invalid GPS data + //verifyPositions(decoder, binary( + // "40503835003300070001441c3d8ed1c400000000000000c9000000c900000000000000000000020000000003de0100000000000007d007d000")); + verifyPositions(decoder, binary( "4050993f005c000200014104d8f19682525666c252568c3c52568c63ffc8338402698885000002000009cf03de0100000000000007d007d000525666c252568c5a52568c63ffc8338402698885000002000009cf03de0100000000000007d007d000")); -- cgit v1.2.3