From eb5fbb9f8ba1a798949e2b881b8268ff151aaeb6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 1 Apr 2016 13:43:35 +1300 Subject: Add two V680 test cases --- test/org/traccar/protocol/V680ProtocolDecoderTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/org/traccar/protocol/V680ProtocolDecoderTest.java b/test/org/traccar/protocol/V680ProtocolDecoderTest.java index 42c331cde..2e36010c7 100644 --- a/test/org/traccar/protocol/V680ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/V680ProtocolDecoderTest.java @@ -9,7 +9,13 @@ public class V680ProtocolDecoderTest extends ProtocolTest { public void testDecode() throws Exception { V680ProtocolDecoder decoder = new V680ProtocolDecoder(new V680Protocol()); - + + verifyPosition(decoder, text( + "#355488020168617##1#0000#AUT#01#260001a412966f#1834.790700,E,5302.748800,N,0.00,0.00#310316#174538.000##")); + + verifyPosition(decoder, text( + "#355488020168617##1#0000#AUT#01##1834.770100,E,5302.742800,N,0.62,0.00#310316#211537.000##")); + verifyNothing(decoder, text( "#353588102019155")); -- cgit v1.2.3