aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-13 09:45:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-13 09:45:52 +1300
commit7568adcc9350dfaeb23645a92b5d63663509ddc6 (patch)
treee94b7596a27617e6467ff2279d8db07fdc6f4ec4 /test/org/traccar
parent5502e0657caa5d941de8139e834c8d8c089fa389 (diff)
downloadtraccar-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.tar.gz
traccar-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.tar.bz2
traccar-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.zip
Adjust watch decoder to accept spaces
Diffstat (limited to 'test/org/traccar')
-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 b7320098f..89e9a7e77 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());
+ verifyPosition(decoder, text(
+ "[3G*4700222306*0077*UD,120316,140610,V,48.779045,N, 9.1574736,E,0.00,0.0,0.0,0,25,83,0,0,00000000,2,255,262,1,21041,9067,121,21041,5981,116"));
+
+ verifyPosition(decoder, text(
+ "[3G*4700222306*011F*UD2,120316,140444,A,48.779045,N, 9.1574736,E,0.57,12.8,0.0,7,28,77,0,0,00000000,2,2,262,1,21041,9067,121,21041,5981,116,5,WG-Superlativ,34:31:c4:c8:a9:22,-67,EasyBox-28E858,18:83:bf:28:e8:f4,-70,MoMaXXg,be:05:43:b7:19:15,-72,MoMaXX2,bc:05:43:b7:19:15,-72,Gastzugang,18:83:bf:28:e8:f5,-72"));
+
verifyNothing(decoder, text(
"[SG*9081000548*0009*LK,0,100"));