aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-12 16:51:58 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-12 16:51:58 -0700
commitb2260e5220e7bfbd5098502dbaca0aa68222b79b (patch)
tree34d96df17420840f324656c2707c654850a405d2 /src/test
parentf4855e513e121b59e923af0da8d129007349c639 (diff)
downloadtraccar-server-b2260e5220e7bfbd5098502dbaca0aa68222b79b.tar.gz
traccar-server-b2260e5220e7bfbd5098502dbaca0aa68222b79b.tar.bz2
traccar-server-b2260e5220e7bfbd5098502dbaca0aa68222b79b.zip
Support alternative location data
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/TopinProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
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
@@ -11,9 +11,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"));
verifyAttributes(decoder, binary(