diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-14 07:43:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-14 07:43:19 +1300 |
commit | b3e2f211c3a3c64c8fa704ba1942970bb97f8eae (patch) | |
tree | 56c4011019ad17f52b55211fef10b16771adf33a /test/org | |
parent | 633bed5cd14c16d53c7b84ed2c6586915467e1a8 (diff) | |
download | traccar-server-b3e2f211c3a3c64c8fa704ba1942970bb97f8eae.tar.gz traccar-server-b3e2f211c3a3c64c8fa704ba1942970bb97f8eae.tar.bz2 traccar-server-b3e2f211c3a3c64c8fa704ba1942970bb97f8eae.zip |
Re-implement StarLink protocol decoder
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/StarLinkProtocolDecoderTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/org/traccar/protocol/StarLinkProtocolDecoderTest.java b/test/org/traccar/protocol/StarLinkProtocolDecoderTest.java index 33ee49812..8bd4427b3 100644 --- a/test/org/traccar/protocol/StarLinkProtocolDecoderTest.java +++ b/test/org/traccar/protocol/StarLinkProtocolDecoderTest.java @@ -10,17 +10,17 @@ public class StarLinkProtocolDecoderTest extends ProtocolTest { StarLinkProtocolDecoder decoder = new StarLinkProtocolDecoder(new StarLinkProtocol()); - verifyNothing(decoder, text( - "$SLU005F20,06,22743,170116091944,01,170116091944,+3206.0991,+03452.0605,003.6,008,064675,1,1,0,0,0,0,0,0,10424,2521,14.156,01.163,,1,1,1,4*BE")); + verifyPosition(decoder, text( + "$SLU006968,06,375153,170117051824,01,170117051823,+3203.2073,+03448.1360,000.0,300,085725,1,1,0,0,0,0,0,0,10422,36201,12.655,04.085,,0,0,0,99*45")); - verifyNothing(decoder, text( - "$SLU005F20,06,22718,170116091422,01,170116091422,+3205.1777,+03450.7595,046.8,359,064671,1,1,0,0,0,0,0,0,10424,64072,14.148,01.161,,1,1,1,4*03")); + verifyPosition(decoder, text( + "$SLU006968,06,375155,170117052615,24,170117052613,+3203.2079,+03448.1369,000.0,300,085725,1,1,0,0,0,0,0,0,10422,36201,14.290,04.083,,1,1*5B")); - verifyNothing(decoder, text( - "$SLU005F20,06,22695,170116090730,24,170116090730,+3203.6062,+03449.6945,013.9,181,064666,1,1,0,0,0,0,0,0,10422,30631,14.089,01.163,,1,1*43")); + verifyPosition(decoder, text( + "$SLU006968,06,375156,170117052616,34,170117052614,+3203.2079,+03448.1369,000.0,300,085725,1,1,0,0,0,0,0,0,10422,36201,14.277,04.084,1,1,1,1*F3")); verifyPosition(decoder, text( - "$SLU0004D2,06,32,071106135931,01,071106135930,+3159.4376,+03445.3298,021.3,087,000554,31071,11704,13.45,3.87*3E")); + "$SLU006968,06,375154,170117052613,04,170117052612,+3203.2079,+03448.1369,000.0,300,085725,1,1,0,0,0,0,0,0,10422,36201,14.287,04.084,,1,0*5B")); } |