aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-12 17:06:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-12 17:06:52 +1300
commit8d973ed63075acfcf4b1c4809de41cb9d4a2c9db (patch)
treec43f2cb1573e76eda1816c98d55de4b4684677fa /test/org
parent751569af4d09b693ec01442ae2241ee5ec6432d7 (diff)
downloadtrackermap-server-8d973ed63075acfcf4b1c4809de41cb9d4a2c9db.tar.gz
trackermap-server-8d973ed63075acfcf4b1c4809de41cb9d4a2c9db.tar.bz2
trackermap-server-8d973ed63075acfcf4b1c4809de41cb9d4a2c9db.zip
Handle new format for Watch protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/WatchProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/WatchProtocolDecoderTest.java b/test/org/traccar/protocol/WatchProtocolDecoderTest.java
index 5b09f48ff..b7320098f 100644
--- a/test/org/traccar/protocol/WatchProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/WatchProtocolDecoderTest.java
@@ -10,6 +10,12 @@ public class WatchProtocolDecoderTest extends ProtocolTest {
WatchProtocolDecoder decoder = new WatchProtocolDecoder(new WatchProtocol());
+ verifyNothing(decoder, text(
+ "[SG*9081000548*0009*LK,0,100"));
+
+ verifyPosition(decoder, text(
+ "[SG*9081000548*00A9*UD,110116,113639,V,16.479064,S,68.119072,,0.7593,000,99,00,80,80,0,50,00000000,5,1,736,2,10103,10732,153,10103,11061,152,10103,11012,152,10103,10151,150,10103,10731,143,,00"));
+
verifyPosition(decoder, text(
"[3G*2256002206*0079*UD2,100116,153723,A,38.000000,N,-9.000000,W,0.44,299.3,0.0,7,100,86,0,0,00000008,2,0,268,3,3010,51042,146,3010,51043,132]"));