diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-19 23:04:34 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-19 23:04:34 +1200 |
commit | 56a4fe28c4d72b8ec1f55fce4c8de18c1ef71f73 (patch) | |
tree | 4e9e4f54215ea6fb7b285886b16d8b30bdbc85cb | |
parent | 920f7d9d475bd12d37c51e585ae810c2c0d596c3 (diff) | |
download | trackermap-server-56a4fe28c4d72b8ec1f55fce4c8de18c1ef71f73.tar.gz trackermap-server-56a4fe28c4d72b8ec1f55fce4c8de18c1ef71f73.tar.bz2 trackermap-server-56a4fe28c4d72b8ec1f55fce4c8de18c1ef71f73.zip |
Remove debug code from ArknavX8
-rw-r--r-- | src/org/traccar/protocol/ArknavX8ProtocolDecoder.java | 3 | ||||
-rw-r--r-- | test/org/traccar/protocol/ArknavX8ProtocolDecoderTest.java | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/ArknavX8ProtocolDecoder.java b/src/org/traccar/protocol/ArknavX8ProtocolDecoder.java index 931cb1d14..c0a18311e 100644 --- a/src/org/traccar/protocol/ArknavX8ProtocolDecoder.java +++ b/src/org/traccar/protocol/ArknavX8ProtocolDecoder.java @@ -21,7 +21,6 @@ import org.traccar.DeviceSession; import org.traccar.helper.DateBuilder; import org.traccar.helper.Parser; import org.traccar.helper.PatternBuilder; -import org.traccar.helper.PatternUtil; import org.traccar.model.Position; import java.net.SocketAddress; @@ -57,8 +56,6 @@ public class ArknavX8ProtocolDecoder extends BaseProtocolDecoder { return null; } - PatternUtil.MatchResult r = PatternUtil.checkPattern(PATTERN.pattern(), sentence); - Parser parser = new Parser(PATTERN, sentence); if (!parser.matches()) { return null; diff --git a/test/org/traccar/protocol/ArknavX8ProtocolDecoderTest.java b/test/org/traccar/protocol/ArknavX8ProtocolDecoderTest.java index a28e71c64..c5e99f60b 100644 --- a/test/org/traccar/protocol/ArknavX8ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/ArknavX8ProtocolDecoderTest.java @@ -11,6 +11,12 @@ public class ArknavX8ProtocolDecoderTest extends ProtocolTest { ArknavX8ProtocolDecoder decoder = new ArknavX8ProtocolDecoder(new ArknavX8Protocol()); verifyNothing(decoder, text( + "351856045213782,241111")); + + verifyNothing(decoder, text( + "2R,090214235955,00,,00.04,03.76,001892024.9")); + + verifyNothing(decoder, text( "351856040005407,240101")); verifyPosition(decoder, text( |