From 2e30e3cf3b583003045980e66e7ee9b6ea237182 Mon Sep 17 00:00:00 2001 From: Edward Valley Date: Fri, 23 Aug 2019 22:43:50 -0400 Subject: Add tests for enhancements --- src/test/java/org/traccar/protocol/WialonProtocolDecoderTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test/java/org/traccar') 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 @@ -25,6 +25,9 @@ public class WialonProtocolDecoderTest extends ProtocolTest { verifyPosition(decoder, text( "#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")); @@ -35,6 +38,10 @@ public class WialonProtocolDecoderTest extends ProtocolTest { "#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( + "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")); -- cgit v1.2.3