From b14974fec3c529e4cc29db6f86372efddc87b959 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 30 Oct 2015 15:00:41 +1300 Subject: Refactor Wialon protocol decoder --- test/org/traccar/protocol/WialonProtocolDecoderTest.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/WialonProtocolDecoderTest.java b/test/org/traccar/protocol/WialonProtocolDecoderTest.java index 3541ceb8d..5c3863a5e 100644 --- a/test/org/traccar/protocol/WialonProtocolDecoderTest.java +++ b/test/org/traccar/protocol/WialonProtocolDecoderTest.java @@ -10,15 +10,19 @@ public class WialonProtocolDecoderTest extends ProtocolDecoderTest { WialonProtocolDecoder decoder = new WialonProtocolDecoder(new WialonProtocol()); - verifyNothing(decoder, text( "#L#123456789012345;test")); + verifyNothing(decoder, text( + "#L#123456789012345;test")); - verifyNothing(decoder, text( "#L#2002;NA")); + verifyNothing(decoder, text( + "#L#2002;NA")); - verifyNothing(decoder, text( "#P#")); + verifyNothing(decoder, text( + "#P#")); verifyPosition(decoder, text( - "#SD#270413;205601;5544.6025;N;03739.6834;E;1;2;3;4")); - + "#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