diff --git a/src/test/java/ch/zhaw/pm2/racetrack/MoveListStrategyTest.java b/src/test/java/ch/zhaw/pm2/racetrack/MoveListStrategyTest.java index 28fe8f0..88c3f28 100644 --- a/src/test/java/ch/zhaw/pm2/racetrack/MoveListStrategyTest.java +++ b/src/test/java/ch/zhaw/pm2/racetrack/MoveListStrategyTest.java @@ -14,10 +14,14 @@ public class MoveListStrategyTest { private MoveStrategy moveList; + @Nested @DisplayName("MoveListStrategy") class MoveList { + /** + * Creates a new MoveListStrategy + */ @BeforeEach void setup() { try { @@ -27,6 +31,9 @@ public class MoveListStrategyTest { } } + /** + * Checks if the directions are returned correct by method nextMove + */ @Test void checkMove() { Assertions.assertEquals(PositionVector.Direction.RIGHT,moveList.nextMove());