diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-20 14:36:49 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-20 14:36:49 +0500 |
commit | 804c56a76dc8406e4ff072289a4a9f97322dfe83 (patch) | |
tree | 00500092593d3cb64d5c814fe7d6a2adf9a23d35 /test/org/traccar/reports | |
parent | 1ce8c1945e36acd56b7ceb87b900a0efa14e9ecd (diff) | |
download | traccar-server-804c56a76dc8406e4ff072289a4a9f97322dfe83.tar.gz traccar-server-804c56a76dc8406e4ff072289a4a9f97322dfe83.tar.bz2 traccar-server-804c56a76dc8406e4ff072289a4a9f97322dfe83.zip |
Removed rounding and BigDecimal for distance and averageSpeed
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 80b0f6287..2e01505db 100644 --- a/test/org/traccar/reports/ReportUtilsTest.java +++ b/test/org/traccar/reports/ReportUtilsTest.java @@ -9,9 +9,9 @@ public class ReportUtilsTest { @Test public void testCalculateDistance() { Position startPosition = new Position(); - startPosition.set(Position.KEY_TOTAL_DISTANCE, 500); + startPosition.set(Position.KEY_TOTAL_DISTANCE, 500.0); Position endPosition = new Position(); - endPosition.set(Position.KEY_TOTAL_DISTANCE, 700); + endPosition.set(Position.KEY_TOTAL_DISTANCE, 700.0); Assert.assertEquals(ReportUtils.calculateDistance(startPosition, endPosition), 200.0, 10); startPosition.set(Position.KEY_ODOMETER, 50000); endPosition.set(Position.KEY_ODOMETER, 50001); |