From e94a83c5fdc8b48d5e8f3f537d8b6e3e15e26d51 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 16 Sep 2020 20:22:11 -0700 Subject: Ignore invalid data --- .../org/traccar/protocol/GlobalstarProtocolDecoderTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/test/java/org/traccar/protocol') diff --git a/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java index f7bf8f514..75d30ec47 100644 --- a/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/GlobalstarProtocolDecoderTest.java @@ -11,6 +11,17 @@ public class GlobalstarProtocolDecoderTest extends ProtocolTest { GlobalstarProtocolDecoder decoder = new GlobalstarProtocolDecoder(null); + verifyNull(decoder, request(HttpMethod.POST, "/", buffer( + "\n", + "\n", + "\n", + "0-4325340\n", + "1600220003\n", + "N\n", + "0x63FFFF1BB4FFFFFFFF\n", + "\n", + ""))); + verifyPositions(decoder, request(HttpMethod.POST, "/", buffer( "", "", -- cgit v1.2.3