aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-21 12:00:10 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-21 12:00:10 +1200
commitd2c2f9ded136ffa594ec13f4d426d7e7c5b223cd (patch)
tree8ae3e17cfad4bb0087799906861e18b13a166f3f
parentf26304bf414e86c00ea85cce143226084434cacc (diff)
downloadtrackermap-server-d2c2f9ded136ffa594ec13f4d426d7e7c5b223cd.tar.gz
trackermap-server-d2c2f9ded136ffa594ec13f4d426d7e7c5b223cd.tar.bz2
trackermap-server-d2c2f9ded136ffa594ec13f4d426d7e7c5b223cd.zip
Add more TK103 test cases
-rw-r--r--test/org/traccar/protocol/Tk103ProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java
index f4962fac0..be1c8929b 100644
--- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java
@@ -53,6 +53,27 @@ public class Tk103ProtocolDecoderTest {
verify(decoder.decode(null, null,
"(864768010009188,BP05,271114,V,4012.19376N,00824.05638E,000.0,154436,000.0"));
+ verify(decoder.decode(null, null,
+ "(013632651491,BP05,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)"));
+
+ verify(decoder.decode(null, null,
+ "(013632651491,ZC07,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)"));
+
+ verify(decoder.decode(null, null,
+ "(013632651491,ZC11,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)"));
+
+ verify(decoder.decode(null, null,
+ "(013632651491,ZC12,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)"));
+
+ verify(decoder.decode(null, null,
+ "(013632651491,ZC13,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)"));
+
+ verify(decoder.decode(null, null,
+ "(013632651491,ZC17,040613,A,2234.0297N,11405.9101E,000.0,040137,178.48)"));
+
+ assertNull(decoder.decode(null, null,
+ "(013632651491,ZC20,040613,040137,6,42,112,0)"));
+
}
}