aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-20 00:18:16 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-06-20 00:18:16 +1200
commitf55df8e959405e3f7c1d0a708843e63acf0742af (patch)
tree38d3ebbdbdfd50fd5b3062b922a744f8220ccaeb
parent355c1ad0cf0d53b3fd50d16033b3c55f574f82e5 (diff)
downloadtrackermap-server-f55df8e959405e3f7c1d0a708843e63acf0742af.tar.gz
trackermap-server-f55df8e959405e3f7c1d0a708843e63acf0742af.tar.bz2
trackermap-server-f55df8e959405e3f7c1d0a708843e63acf0742af.zip
Add some Carscop test cases
-rw-r--r--test/org/traccar/protocol/CarscopProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CarscopProtocolDecoderTest.java b/test/org/traccar/protocol/CarscopProtocolDecoderTest.java
index e2ac62e0b..ab64ddd3c 100644
--- a/test/org/traccar/protocol/CarscopProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CarscopProtocolDecoderTest.java
@@ -10,6 +10,15 @@ public class CarscopProtocolDecoderTest extends ProtocolTest {
CarscopProtocolDecoder decoder = new CarscopProtocolDecoder(new CarscopProtocol());
+ verifyNothing(decoder, text(
+ "*160618233129UB00HSO"));
+
+ verifyNothing(decoder, text(
+ "*160618232614UD00232614A5009.1747N01910.3829E0.000160618298.2811000000L000000"));
+
+ verifyNothing(decoder, text(
+ "*160618232529UB05CW9999C00000538232529A5009.1747N01910.3829E0.000160618298.2811000000L000000"));
+
verifyPosition(decoder, text(
"*040331141830UB05123456789012345061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"),
position("2004-03-31 06:18:25.000", true, 29.56689, 106.45424));