aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-11-14 07:35:45 -0800
committerAnton Tananaev <anton@traccar.org>2023-11-14 07:35:45 -0800
commit3aa0729fba832e13da2fd0a6a1c600636fa235a9 (patch)
treed4fcdfa5fecfed8168c4399329246d03dab18a03 /src/test/java
parentcd5413ae082a55e94d46f38a2a73f72eddb92aca (diff)
downloadtrackermap-server-3aa0729fba832e13da2fd0a6a1c600636fa235a9.tar.gz
trackermap-server-3aa0729fba832e13da2fd0a6a1c600636fa235a9.tar.bz2
trackermap-server-3aa0729fba832e13da2fd0a6a1c600636fa235a9.zip
Prefer used fuel attribute
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/ProtocolTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/ProtocolTest.java b/src/test/java/org/traccar/ProtocolTest.java
index 3b04b5e02..23ba562f8 100644
--- a/src/test/java/org/traccar/ProtocolTest.java
+++ b/src/test/java/org/traccar/ProtocolTest.java
@@ -261,6 +261,10 @@ public class ProtocolTest extends BaseTest {
assertTrue(attributes.get(Position.KEY_FUEL_LEVEL) instanceof Number);
}
+ if (attributes.containsKey(Position.KEY_FUEL_USED)) {
+ assertTrue(attributes.get(Position.KEY_FUEL_USED) instanceof Number);
+ }
+
if (attributes.containsKey(Position.KEY_POWER)) {
assertTrue(attributes.get(Position.KEY_POWER) instanceof Number);
}