aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-08 19:14:23 +1300
committerGitHub <noreply@github.com>2017-03-08 19:14:23 +1300
commite3a3f06cc07bc5d75d3d670e045abb5d6c91fcad (patch)
treeee424dc1b6b86abb54abcc5fe4f2068ac0cbf286 /test/org/traccar
parentb7e53f57689e1f8a1c0705aeea32dc6e69f3fcb3 (diff)
parentf94613b97cf80af64154ae571920a273771fa1d3 (diff)
downloadtraccar-server-e3a3f06cc07bc5d75d3d670e045abb5d6c91fcad.tar.gz
traccar-server-e3a3f06cc07bc5d75d3d670e045abb5d6c91fcad.tar.bz2
traccar-server-e3a3f06cc07bc5d75d3d670e045abb5d6c91fcad.zip
Merge pull request #2979 from jon-stumpf/jss-add-info
Additional Protocol Information
Diffstat (limited to 'test/org/traccar')
-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 %");