From 8e0a29c68f76d5514bb74b77537d90cd64e76ea3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Jan 2014 11:44:09 +1300 Subject: Improve Gotop regex pattern --- test/org/traccar/protocol/GotopProtocolDecoderTest.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/GotopProtocolDecoderTest.java b/test/org/traccar/protocol/GotopProtocolDecoderTest.java index bc0253e83..d0e290b61 100644 --- a/test/org/traccar/protocol/GotopProtocolDecoderTest.java +++ b/test/org/traccar/protocol/GotopProtocolDecoderTest.java @@ -14,6 +14,8 @@ public class GotopProtocolDecoderTest { decoder.setDataManager(new TestDataManager()); assertNull(decoder.decode(null, null, "")); + + assertNull(decoder.decode(null, null, "353327020412763,CMD-X")); verify(decoder.decode(null, null, "013226009991924,CMD-T,A,DATE:130802,TIME:153721,LAT:25.9757433S,LOT:028.1087816E,Speed:000.0,X-X-X-X-81-26,000,65501-00A0-4B8E")); @@ -24,6 +26,9 @@ public class GotopProtocolDecoderTest { verify(decoder.decode(null, null, "353327020115804,CMD-T,A,DATE:090329,TIME:223252,LAT:22.7634066N,LOT:114.3964783E,Speed:000.0,1-1-0-84-20,000")); + verify(decoder.decode(null, null, + "353327020412763,CMD-F,V,DATE:140125,TIME:183636,LAT:51.6384466N,LOT:000.2863866E,Speed:000.0,61-19,")); + } } -- cgit v1.2.3