aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/reports/ReportUtilsTest.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-02-25 21:04:33 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 16:04:01 -0500
commit9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf (patch)
treee8c059e5cb07749ee7693a9d303139c2069adbe7 /test/org/traccar/reports/ReportUtilsTest.java
parente849902d7a5aa564bd930465f04f6d4b8498ddf2 (diff)
downloadtrackermap-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.tar.gz
trackermap-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.tar.bz2
trackermap-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.zip
Renamed Position.KEY_FUEL to Position.KEY_FUEL_LEVEL;
Diffstat (limited to 'test/org/traccar/reports/ReportUtilsTest.java')
-rw-r--r--test/org/traccar/reports/ReportUtilsTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/reports/ReportUtilsTest.java b/test/org/traccar/reports/ReportUtilsTest.java
index 9a30ce3a7..f4dd88cba 100644
--- a/test/org/traccar/reports/ReportUtilsTest.java
+++ b/test/org/traccar/reports/ReportUtilsTest.java
@@ -24,8 +24,8 @@ public class ReportUtilsTest {
Position endPosition = new Position();
Assert.assertEquals(ReportUtils.calculateFuel(startPosition, endPosition), "-");
startPosition.setProtocol("meitrack");
- startPosition.set(Position.KEY_FUEL, 0.07);
- endPosition.set(Position.KEY_FUEL, 0.05);
+ startPosition.set(Position.KEY_FUEL_LEVEL, 0.07);
+ endPosition.set(Position.KEY_FUEL_LEVEL, 0.05);
Assert.assertEquals(ReportUtils.calculateFuel(startPosition, endPosition), "0.02 %");
startPosition.setProtocol("galileo");
Assert.assertEquals(ReportUtils.calculateFuel(startPosition, endPosition), "0.02 %");