Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl committed Apr 22, 2024
1 parent 44c4b4d commit 6caf0df
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,14 @@ void calcRoute_defaultVehicle_defaultVehicleIsAssigned() {

Map<String, Id<Vehicle>> modeId = VehicleUtils.getVehicleIds(person);

VehicleType defaultVehicleType = scenario.getVehicles().getVehicleTypes()
.get(VehicleUtils.createDefaultVehicleType().getId());
assertNotNull(defaultVehicleType);

// should be only one, but however
for (Id<Vehicle> vehicleId : modeId.values()) {
assertTrue(scenario.getVehicles().getVehicles().containsKey(vehicleId));
assertEquals(VehicleUtils.createDefaultVehicleType(), scenario.getVehicles().getVehicles().get(vehicleId).getType());
assertEquals(defaultVehicleType, scenario.getVehicles().getVehicles().get(vehicleId).getType());
}
}

Expand Down

0 comments on commit 6caf0df

Please sign in to comment.