diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-26 05:30:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-26 05:30:15 +1300 |
commit | 5cc40c6fabb4223b0c283164b56c63af310e2eac (patch) | |
tree | acb9cca9dcd8e5b0e5292c3ffb96aa08e4319e9b /test/org/traccar | |
parent | 80e7a43412a72f0189c11baac102af7a335de09b (diff) | |
download | trackermap-server-5cc40c6fabb4223b0c283164b56c63af310e2eac.tar.gz trackermap-server-5cc40c6fabb4223b0c283164b56c63af310e2eac.tar.bz2 trackermap-server-5cc40c6fabb4223b0c283164b56c63af310e2eac.zip |
Add D-WAY test cases
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/DwayProtocolDecoderTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/DwayProtocolDecoderTest.java b/test/org/traccar/protocol/DwayProtocolDecoderTest.java index 33a943b29..481382535 100644 --- a/test/org/traccar/protocol/DwayProtocolDecoderTest.java +++ b/test/org/traccar/protocol/DwayProtocolDecoderTest.java @@ -10,6 +10,15 @@ public class DwayProtocolDecoderTest extends ProtocolTest { DwayProtocolDecoder decoder = new DwayProtocolDecoder(new DwayProtocol()); + verifyNull(decoder, text( + "AA55,36,10024,1,171025,161055,36.0294,-79.7881,201, 2.5,111,1000,0000,00000,3578,0,0,0,D")); + + verifyNull(decoder, text( + "AA55,115,318,1,171024,195059,28.0153,-82.4761,3, 1.0,319,1000,0000,00000,4244,0,0,0,D")); + + verifyNull(decoder, text( + "AA55,117,318,1,171025,153758,28.0152,-82.4759,19, 0.6,319,1000,0000,10000,4242,0,0,0,D")); + verifyPosition(decoder, text( "AA55,1,123456,1,140101,101132,22.5500,113.6770,75,70.5,320,1100,0011,1110,3950,33000,24000,12345678")); |