aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-04-18 15:51:38 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-04-18 15:51:38 +1200
commit773768093c6c78906e54abe128cb1b4ca9430313 (patch)
tree07bb3e513ac19d53260fcfa283c05a4bd67de3b7 /test/org/traccar/protocol
parent053e03307f851f3d990caf8ba95dad4ea8836977 (diff)
downloadtraccar-server-773768093c6c78906e54abe128cb1b4ca9430313.tar.gz
traccar-server-773768093c6c78906e54abe128cb1b4ca9430313.tar.bz2
traccar-server-773768093c6c78906e54abe128cb1b4ca9430313.zip
Support Atrack text message format
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/AtrackProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/AtrackProtocolDecoderTest.java b/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
index bd606c320..1fe579c76 100644
--- a/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
@@ -10,6 +10,12 @@ public class AtrackProtocolDecoderTest extends ProtocolTest {
AtrackProtocolDecoder decoder = new AtrackProtocolDecoder(new AtrackProtocol());
+ verifyPosition(decoder, buffer(
+ "@P,1126,121,104547,358901048091554,20180412143513,20180412143514,20180413060000,16423389,48178700,108,2,6.5,9,0,0,0,0,0,2000,2000,\r\n"));
+
+ verifyPosition(decoder, buffer(
+ "@P,434E,124,104655,358901048091554,20180412143706,20180412143706,20180413060107,16423389,48178700,108,121,6.5,10,0,0,0,0,0,2000,2000,\r\n"));
+
verifyPositions(decoder, binary(
"4050b5ed004a2523000310c83713f8c05a88b43e5a88b43f5a88b43f021e0ad5fffdc0a800f3020003059100080000000000000007d007d046554c533a463d3230393120743d3137204e3d3039303100"));