From ded9023ff1d3c008d2874f48d7de426790c6aeb6 Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Wed, 23 Mar 2022 11:24:58 +0100 Subject: [PATCH] adapted CarTest.java for PathFolowerMoveStrategy.java --- src/test/java/ch/zhaw/pm2/racetrack/CarTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java b/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java index 6325c9b..ebac56c 100644 --- a/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java +++ b/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java @@ -186,7 +186,11 @@ class CarTest { car.setMoveStrategy(moveStrategy); 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); assertEquals(moveStrategy, car.getMoveStrategy());