From 1fa85c6841e12027cc87638cd558cedb79e6efa9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 21 Jan 2016 11:58:05 +1300 Subject: Add unit tests for Eelink protocol --- test/org/traccar/protocol/EelinkProtocolDecoderTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java index d1d4c4e9e..a8fac5dbc 100644 --- a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java +++ b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java @@ -13,6 +13,15 @@ public class EelinkProtocolDecoderTest extends ProtocolTest { verifyNothing(decoder, binary( "676701000c002603541880486128290120")); + verifyPosition(decoder, binary( + "676705002200ba569fc3520517a0d8020b0f740f007100d8001e005b0004460101569fd162001f")); + + verifyPosition(decoder, binary( + "676702002500bb569fc3610517a091020b116000001900d8001e005b00044601001f1170003200000000")); + + verifyPosition(decoder, binary( + "676704001c00b7569fc3020517a2d7020b08e100000000d8001e005b0004460004")); + verifyNothing(decoder, binary( "676701000b001b035418804661834901")); -- cgit v1.2.3