aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-06 18:44:43 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-06 18:44:43 +1300
commit10bd96dac0150d9b19623cd86369f8985bda802c (patch)
tree4dcce1b0e8aee230251bf741707b87f93d7a79f0 /test/org
parent73112d542cb4a2fa2ac47d85ebe071c9d3c6f894 (diff)
downloadtrackermap-server-10bd96dac0150d9b19623cd86369f8985bda802c.tar.gz
trackermap-server-10bd96dac0150d9b19623cd86369f8985bda802c.tar.bz2
trackermap-server-10bd96dac0150d9b19623cd86369f8985bda802c.zip
Refactor TAIP protocol decoder
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/TaipProtocolDecoderTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/TaipProtocolDecoderTest.java b/test/org/traccar/protocol/TaipProtocolDecoderTest.java
index d9f74f33d..d0e800ec1 100644
--- a/test/org/traccar/protocol/TaipProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TaipProtocolDecoderTest.java
@@ -11,7 +11,8 @@ public class TaipProtocolDecoderTest extends ProtocolDecoderTest {
TaipProtocolDecoder decoder = new TaipProtocolDecoder(new TaipProtocol(), false);
verifyPosition(decoder, text(
- ">RGP230615010248-2682523-065236820000003007F4101;ID=0005;#0002;*2A<"));
+ ">RGP230615010248-2682523-065236820000003007F4101;ID=0005;#0002;*2A<"),
+ position("2015-06-23 01:02:48.000", true, -26.82523, -65.23682));
verifyPosition(decoder, text(
">RGP190805211932-3457215-058493640000000FFBF0300;ID=8251;#2122;*54<"));
@@ -23,7 +24,8 @@ public class TaipProtocolDecoderTest extends ProtocolDecoderTest {
"\r\n>REV691615354941+3570173+1397742703203212;ID=Test"));
verifyPosition(decoder, text(
- ">REV481599462982+2578391-0802945201228512;ID=Test"));
+ ">REV481599462982+2578391-0802945201228512;ID=Test"),
+ position("2010-09-02 17:29:42.000", true, 25.78391, -80.29452));
verifyPosition(decoder, text(
">REV131756153215+3359479-0075299001031332;VO=10568798;IO=310;SV=10;BL=4190;CV09=0;AD=0;AL=+47;ID=356612021059680"));