adapted CarTest.java for PathFolowerMoveStrategy.java

This commit is contained in:
romanschenk37 2022-03-23 11:24:58 +01:00
parent 2de3993921
commit ded9023ff1
1 changed files with 5 additions and 1 deletions

View File

@ -186,7 +186,11 @@ class CarTest {
car.setMoveStrategy(moveStrategy); car.setMoveStrategy(moveStrategy);
assertEquals(moveStrategy, car.getMoveStrategy()); assertEquals(moveStrategy, car.getMoveStrategy());
moveStrategy = new PathFollowerMoveStrategy(); try {
moveStrategy = new PathFollowerMoveStrategy(".\\follower\\challenge_points.txt", new PositionVector(0, 0));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
car.setMoveStrategy(moveStrategy); car.setMoveStrategy(moveStrategy);
assertEquals(moveStrategy, car.getMoveStrategy()); assertEquals(moveStrategy, car.getMoveStrategy());