diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-23 14:18:03 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-23 14:18:03 +1200 |
commit | 332561a237acc11a89ce35a6503fda3e4de6eff3 (patch) | |
tree | ce73707a4e11ed67f436504a468106d9d20b9c4c | |
parent | 67e2c8f8e0f8753e919e653fc2bca9cfb9939ff2 (diff) | |
download | traccar-server-332561a237acc11a89ce35a6503fda3e4de6eff3.tar.gz traccar-server-332561a237acc11a89ce35a6503fda3e4de6eff3.tar.bz2 traccar-server-332561a237acc11a89ce35a6503fda3e4de6eff3.zip |
Add TAIP test case
-rw-r--r-- | src/org/traccar/protocol/SyrusProtocolDecoder.java | 2 | ||||
-rw-r--r-- | test/org/traccar/protocol/SyrusProtocolDecoderTest.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SyrusProtocolDecoder.java b/src/org/traccar/protocol/SyrusProtocolDecoder.java index 5959715d9..85b1d2798 100644 --- a/src/org/traccar/protocol/SyrusProtocolDecoder.java +++ b/src/org/traccar/protocol/SyrusProtocolDecoder.java @@ -39,7 +39,7 @@ public class SyrusProtocolDecoder extends BaseProtocolDecoder { } private static final Pattern pattern = Pattern.compile( - "R[EP]V" + // Type + "R.." + // Type "(?:\\d{2}" + // Event index "(\\d{4})" + // Week "(\\d))?" + // Day diff --git a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java index 4482d30cb..c001b844f 100644 --- a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java +++ b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java @@ -12,6 +12,9 @@ public class SyrusProtocolDecoderTest extends ProtocolDecoderTest { SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null, false); + /*verify(decoder.decode(null, null, + ">RGP230615010248-2682523-065236820000003007F4101;ID=0005;#0002;*2A<"));*/ + assertNotNull(decoder.decode(null, null, ">RPV00000+3739438-1220384601512612;ID=1234;*7F")); @@ -30,7 +33,6 @@ public class SyrusProtocolDecoderTest extends ProtocolDecoderTest { assertNotNull(decoder.decode(null, null, ">RPV19105+4538405-0739518900000012;ID=9999;*7A<\r\n")); - } } |