adapted CarTest.java for PathFolowerMoveStrategy.java
This commit is contained in:
parent
2de3993921
commit
ded9023ff1
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue