Skip to content
Snippets Groups Projects
Commit eafdc074 authored by René Schöne's avatar René Schöne
Browse files

update

- fix bug in tests after remove CanReachObjectOfInterestWrapper
parent d76dfd2d
No related branches found
No related tags found
No related merge requests found
Pipeline #13910 passed
...@@ -64,11 +64,9 @@ public class TestUtils { ...@@ -64,11 +64,9 @@ public class TestUtils {
public static void addReachability(WorldModelB model, String robotName, String... reachableObjects) { public static void addReachability(WorldModelB model, String robotName, String... reachableObjects) {
Robot robot = model.findRobot(robotName).orElseThrow(); Robot robot = model.findRobot(robotName).orElseThrow();
CanReachObjectOfInterestWrapper wrapper = new CanReachObjectOfInterestWrapper();
for (String reachableObjectName : reachableObjects) { for (String reachableObjectName : reachableObjects) {
wrapper.addCanReachObjectOfInterest(new CanReachObjectOfInterest().setObjectName(reachableObjectName)); robot.addCanReachObjectOfInterest(new CanReachObjectOfInterest().setObjectName(reachableObjectName));
} }
robot.setCanReachObjectOfInterestWrapper(wrapper);
} }
public static void addOtherObjects(WorldModelB model, String... names) { public static void addOtherObjects(WorldModelB model, String... names) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment