1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

adapt tests to changes in vehicleFleetManager

This commit is contained in:
oblonski 2013-06-21 11:16:51 +02:00
parent 8b01497cfc
commit 4761b30b16
2 changed files with 7 additions and 2 deletions

View file

@ -25,6 +25,8 @@ import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import org.junit.Before;
import org.junit.Test;
@ -59,6 +61,8 @@ public class CalcVehicleTypeDependentServiceInsertionTest {
service = mock(Service.class);
vehicleRoute = mock(VehicleRoute.class);
when(fleetManager.getAvailableVehicles()).thenReturn(Arrays.asList(veh1,veh2));
when(veh1.getCapacity()).thenReturn(10);
when(veh2.getCapacity()).thenReturn(10);