diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-02-25 21:04:33 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-04 16:04:01 -0500 |
commit | 9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf (patch) | |
tree | e8c059e5cb07749ee7693a9d303139c2069adbe7 /test/org/traccar/reports | |
parent | e849902d7a5aa564bd930465f04f6d4b8498ddf2 (diff) | |
download | traccar-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.tar.gz traccar-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.tar.bz2 traccar-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.zip |
Renamed Position.KEY_FUEL to Position.KEY_FUEL_LEVEL;
Diffstat (limited to 'test/org/traccar/reports')
-rw-r--r-- | test/org/traccar/reports/ReportUtilsTest.java | 4 |
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 %"); |