aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-12-04 23:13:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-12-04 23:13:57 +1300
commit6b0334411d6d965d1292a352fd8c1f3b58bfe76e (patch)
tree244e7e8a81866b08044b966b2ca0f1cca55a3986
parent1208b77474498432364e03550a953962d2eac015 (diff)
downloadtraccar-server-6b0334411d6d965d1292a352fd8c1f3b58bfe76e.tar.gz
traccar-server-6b0334411d6d965d1292a352fd8c1f3b58bfe76e.tar.bz2
traccar-server-6b0334411d6d965d1292a352fd8c1f3b58bfe76e.zip
Add v680 unit test
-rw-r--r--src/org/traccar/protocol/V680ProtocolDecoder.java1
-rw-r--r--test/org/traccar/protocol/V680ProtocolDecoderTest.java3
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##"));
}