diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-12-04 23:13:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-12-04 23:13:57 +1300 |
commit | 6b0334411d6d965d1292a352fd8c1f3b58bfe76e (patch) | |
tree | 244e7e8a81866b08044b966b2ca0f1cca55a3986 | |
parent | 1208b77474498432364e03550a953962d2eac015 (diff) | |
download | trackermap-server-6b0334411d6d965d1292a352fd8c1f3b58bfe76e.tar.gz trackermap-server-6b0334411d6d965d1292a352fd8c1f3b58bfe76e.tar.bz2 trackermap-server-6b0334411d6d965d1292a352fd8c1f3b58bfe76e.zip |
Add v680 unit test
-rw-r--r-- | src/org/traccar/protocol/V680ProtocolDecoder.java | 1 | ||||
-rw-r--r-- | test/org/traccar/protocol/V680ProtocolDecoderTest.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/V680ProtocolDecoder.java b/src/org/traccar/protocol/V680ProtocolDecoder.java index 7541bb618..2c7e3f6f3 100644 --- a/src/org/traccar/protocol/V680ProtocolDecoder.java +++ b/src/org/traccar/protocol/V680ProtocolDecoder.java @@ -35,7 +35,6 @@ public class V680ProtocolDecoder extends BaseProtocolDecoder { super(serverManager); } - //#359094025419110#bigfriend#0#1234#AUTO#1##04632.8846,W,2327.2264,S,0.00,0.00#220913#234808## private static final Pattern pattern = Pattern.compile( "(?:#(\\d+)#" + // IMEI "([^#]*)#)?" + // User diff --git a/test/org/traccar/protocol/V680ProtocolDecoderTest.java b/test/org/traccar/protocol/V680ProtocolDecoderTest.java index 90cb3823b..3f2f2d829 100644 --- a/test/org/traccar/protocol/V680ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/V680ProtocolDecoderTest.java @@ -57,6 +57,9 @@ public class V680ProtocolDecoderTest { verify(decoder.decode(null, null, "#359094025419110#bigfriend#0#1234#AUTO#1##04632.8846,W,2327.2264,S,0.00,0.00#220913#234808##")); + + verify(decoder.decode(null, null, + "#353588102031599##1#0000#AUT#01#41300304843fc1#7955.124400,E,642.095500,N,5.28,95.21#041213#074431.000##")); } |