aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-09 19:51:42 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-09 19:51:42 -0800
commit207f6dbd254cef5f3b70f4725f1d5042d5726fd1 (patch)
treef037155ff2d8192e557ceb755c5bd01ec361e6a0 /src/test/java
parentc4b898225df0d41a705cf78cb310c691451bf131 (diff)
downloadtrackermap-server-207f6dbd254cef5f3b70f4725f1d5042d5726fd1.tar.gz
trackermap-server-207f6dbd254cef5f3b70f4725f1d5042d5726fd1.tar.bz2
trackermap-server-207f6dbd254cef5f3b70f4725f1d5042d5726fd1.zip
Decode satellites
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/MeiligaoProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MeiligaoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MeiligaoProtocolDecoderTest.java
index 94f4c8202..c8851c747 100644
--- a/src/test/java/org/traccar/protocol/MeiligaoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/MeiligaoProtocolDecoderTest.java
@@ -2,6 +2,7 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class MeiligaoProtocolDecoderTest extends ProtocolTest {
@@ -10,6 +11,10 @@ public class MeiligaoProtocolDecoderTest extends ProtocolTest {
MeiligaoProtocolDecoder decoder = new MeiligaoProtocolDecoder(null);
+ verifyAttribute(decoder, binary(
+ "2424008f142180340967ff99553033333233302e3030302c412c313531362e383039392c4e2c31303435322e383835352c452c302e30302c33332c3038313232302c2c2a33367c302e387c3132337c323130307c303030302c303030302c303230452c303241417c30323038303030353038394530304531434638347c31437c31373243353832437c3042a8060d0a"),
+ Position.KEY_SATELLITES, 11);
+
verifyPosition(decoder, binary(
"2424011e143190975469ff99993130343634382e3030302c562c303735332e353338332c4e2c30393832322e313737382c452c302e30302c302c3230303132302c2c2a31417c302e307c307c363430307c303030302c303030302c303130312c303238467c30323038303030353137444630304633363838467c30387c30303030314242367c30307c2520205e59454e53414241494348414924534f4e474b52414e244d522e5e5e3f3b363030373634333130303530303337333835333d3135303531393637303631343d3f2b2020202020202020202020202032342020202020202020202020203120202020202020202020202030303034313131202030303130302020202020202020202020202020202020202020203f7b850d0a"));