diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-08-23 23:23:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 23:23:43 -0700 |
commit | 4860e6ede4a174443bce1d5a809b5dfe1ae68543 (patch) | |
tree | ad850364822fca09f353236256cb2ddf7f3d7966 /src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java | |
parent | 4ebb2d0c5c03846999b083c7ee52720730279b90 (diff) | |
parent | 841eea22d98c943272bd0b7c99d395a3d38308aa (diff) | |
download | trackermap-server-4860e6ede4a174443bce1d5a809b5dfe1ae68543.tar.gz trackermap-server-4860e6ede4a174443bce1d5a809b5dfe1ae68543.tar.bz2 trackermap-server-4860e6ede4a174443bce1d5a809b5dfe1ae68543.zip |
Merge pull request #4388 from edvalley/proposed
Enhance Wialon protocol decoder
Diffstat (limited to 'src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java')
-rw-r--r-- | src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java index 40b0469ea..72e56fb44 100644 --- a/src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java @@ -26,6 +26,9 @@ public class WialonProtocolDecoderTest extends ProtocolTest { "#D#101118;061143;0756.0930;N;12338.6403;E;18.223;99.766;-4.000;10;0.800;NA;NA;NA;NA;101_521347:1:521249,101_521126:1:6593598,101_521127:1:774780,101_521072_21.1:1:0,101_521072_21.2:1:71353;F24A")); verifyPosition(decoder, text( + "99999999#D#101118;061143;0756.0930;N;12338.6403;E;18.223;99.766;-4.000;10;0.800;NA;NA;NA;NA;101_521347:1:521249,101_521126:1:6593598,101_521127:1:774780,101_521072_21.1:1:0,101_521072_21.2:1:71353;F24A")); + + verifyPosition(decoder, text( "#D#151216;135910;5321.1466;N;04441.7929;E;87;156;265.000000;12;1.000000;241;NA;NA;NA;odo:2:0.000000,total_fuel:1:430087,can_fls:1:201,can_taho:1:11623,can_mileage:1:140367515")); verifyPosition(decoder, text( @@ -36,6 +39,10 @@ public class WialonProtocolDecoderTest extends ProtocolTest { position("2013-04-27 20:56:01.000", true, 55.74338, 37.66139)); verifyPosition(decoder, text( + "99999999#SD#270413;205601;5544.6025;N;03739.6834;E;1;2;3;4"), + position("2013-04-27 20:56:01.000", true, 55.74338, 37.66139)); + + verifyPosition(decoder, text( "#SD#021214;065947;2237.7552;N;11404.8851;E;0.000;;170.9;5")); verifyPosition(decoder, text( |