aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-28 07:44:26 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-28 07:44:26 -0700
commitef644e5185b3109b0da30972a0b5c56768c69957 (patch)
treedd850eb043e1dad95e393263fc712d96991ebbe4 /src/test/java/org
parent9e07a009a3da41cd3cdd21809e9588e1ed133d6f (diff)
downloadtrackermap-server-ef644e5185b3109b0da30972a0b5c56768c69957.tar.gz
trackermap-server-ef644e5185b3109b0da30972a0b5c56768c69957.tar.bz2
trackermap-server-ef644e5185b3109b0da30972a0b5c56768c69957.zip
Fix tests
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/reports/ReportUtilsTest.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/test/java/org/traccar/reports/ReportUtilsTest.java b/src/test/java/org/traccar/reports/ReportUtilsTest.java
index dfb2ef05c..b73ae7cc0 100644
--- a/src/test/java/org/traccar/reports/ReportUtilsTest.java
+++ b/src/test/java/org/traccar/reports/ReportUtilsTest.java
@@ -105,7 +105,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(data, false, TripReportItem.class);
+ Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(mock(Device.class), data, false, TripReportItem.class);
assertNotNull(trips);
assertFalse(trips.isEmpty());
@@ -119,7 +119,7 @@ public class ReportUtilsTest extends BaseTest {
assertEquals(10, itemTrip.getMaxSpeed(), 0.01);
assertEquals(3000, itemTrip.getDistance(), 0.01);
- Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(stops);
assertFalse(stops.isEmpty());
@@ -160,7 +160,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(data, false, TripReportItem.class);
+ Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, TripReportItem.class);
assertNotNull(trips);
assertFalse(trips.isEmpty());
@@ -174,7 +174,7 @@ public class ReportUtilsTest extends BaseTest {
assertEquals(10, itemTrip.getMaxSpeed(), 0.01);
assertEquals(3000, itemTrip.getDistance(), 0.01);
- trips = reportUtils.detectTripsAndStops(data, false, TripReportItem.class);
+ trips = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, TripReportItem.class);
assertNotNull(trips);
assertFalse(trips.isEmpty());
@@ -188,7 +188,7 @@ public class ReportUtilsTest extends BaseTest {
assertEquals(10, itemTrip.getMaxSpeed(), 0.01);
assertEquals(3000, itemTrip.getDistance(), 0.01);
- Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(stops);
assertFalse(stops.isEmpty());
@@ -231,7 +231,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(data, false, TripReportItem.class);
+ Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, TripReportItem.class);
assertNotNull(trips);
assertFalse(trips.isEmpty());
@@ -245,7 +245,7 @@ public class ReportUtilsTest extends BaseTest {
assertEquals(10, itemTrip.getMaxSpeed(), 0.01);
assertEquals(7000, itemTrip.getDistance(), 0.01);
- Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(stops);
assertFalse(stops.isEmpty());
@@ -282,7 +282,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<StopReportItem> result = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> result = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(result);
assertFalse(result.isEmpty());
@@ -311,7 +311,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<StopReportItem> result = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> result = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(result);
assertFalse(result.isEmpty());
@@ -340,7 +340,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<StopReportItem> result = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> result = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(result);
assertFalse(result.isEmpty());
@@ -369,7 +369,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<StopReportItem> result = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> result = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(result);
assertTrue(result.isEmpty());
@@ -394,7 +394,7 @@ public class ReportUtilsTest extends BaseTest {
mock(Config.class), storage, mock(PermissionsService.class),
tripsConfig, mock(VelocityEngine.class), null);
- Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(data, false, TripReportItem.class);
+ Collection<TripReportItem> trips = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, TripReportItem.class);
assertNotNull(trips);
assertFalse(trips.isEmpty());
@@ -408,7 +408,7 @@ public class ReportUtilsTest extends BaseTest {
assertEquals(7, itemTrip.getMaxSpeed(), 0.01);
assertEquals(600, itemTrip.getDistance(), 0.01);
- Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(data, false, StopReportItem.class);
+ Collection<StopReportItem> stops = reportUtils.detectTripsAndStops(mock(Device.class) ,data, false, StopReportItem.class);
assertNotNull(stops);
assertFalse(stops.isEmpty());