From b2260e5220e7bfbd5098502dbaca0aa68222b79b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 12 Jul 2020 16:51:58 -0700 Subject: Support alternative location data --- src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/test/java/org') diff --git a/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java index 0e04c0a19..8320b1388 100644 --- a/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java @@ -10,9 +10,18 @@ public class TopinProtocolDecoderTest extends ProtocolTest { TopinProtocolDecoder decoder = new TopinProtocolDecoder(null); + verifyNull(decoder, binary( + "787801080D0A")); + verifyNull(decoder, binary( "78780d0103593390754169634d0d0a")); + verifyPosition(decoder, binary( + "7878200813081A0733211608C8D1710DED1D1608DFFB710E06D51039050100286489000D0A")); + + verifyPosition(decoder, binary( + "78782008140709121f36300d769f02058cfd300d771202058c6f0000000300005c99000d0a")); + verifyPosition(decoder, binary( "787812100A03170F32179C026B3F3E0C22AD651F34600D0A")); -- cgit v1.2.3