Skip to content

Commit

Permalink
fix test, remove direct use of "vehicles" attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitnelav authored and Janekdererste committed Apr 11, 2022
1 parent 5b96652 commit 671b9ae
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ public void calcRoute_defaultVehicle_defaultVehicleIsAssigned() {
Controler controler = createControler(scenario);
controler.run();

Object map = person.getAttributes().getAttribute("vehicles");

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

// should be only one, but however
for (Id<Vehicle> vehicleId : modeId.values()) {
Expand Down

0 comments on commit 671b9ae

Please sign in to comment.