diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-24 11:48:56 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-24 11:48:56 -0800 |
commit | 6d98e878f9ccd5b49a97ce7c04bbc4178e482fff (patch) | |
tree | c80db9f5879e5e69858628decda8b1b3b1feef67 | |
parent | 98479ccf543299e1ea376ab11c408345dd6c79f5 (diff) | |
download | traccar-server-6d98e878f9ccd5b49a97ce7c04bbc4178e482fff.tar.gz traccar-server-6d98e878f9ccd5b49a97ce7c04bbc4178e482fff.tar.bz2 traccar-server-6d98e878f9ccd5b49a97ce7c04bbc4178e482fff.zip |
Add Suntech test cases
-rw-r--r-- | test/org/traccar/protocol/SuntechProtocolDecoderTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/SuntechProtocolDecoderTest.java b/test/org/traccar/protocol/SuntechProtocolDecoderTest.java index 2681e6143..355cda783 100644 --- a/test/org/traccar/protocol/SuntechProtocolDecoderTest.java +++ b/test/org/traccar/protocol/SuntechProtocolDecoderTest.java @@ -33,6 +33,12 @@ public class SuntechProtocolDecoderTest extends ProtocolTest { decoder.setHbm(true); + verifyPosition(decoder, text( + "ST300STT;007238270;40;313;20190220;12:05:04;c99e48;+04.644623;-074.076922;010.390;202.77;20;1;997100;14.10;100000;2;8384;003634;4.1;1")); + + verifyPosition(decoder, text( + "ST300STT;109002029;08;1080;20190220;13:00:55;85405;+04.645710;-074.078525;007.760;005.19;10;1;6520802;13.86;100100;4;1716;0000039863;4.1;1;0.00;0000;0000;0;0")); + verifyAttribute(decoder, text( "ST300ALT;007239104;40;313;20190112;01:07:16;c99139;+04.703287;-074.148897;000.000;189.72;21;1;425512;12.61;100000;33;003188;4.1;1"), Position.KEY_HOURS, 3188 * 60000L); |