Javadoc in MoveListStrategyTest

This commit is contained in:
romanschenk37 2022-03-25 23:44:06 +01:00
parent 1addc2a6d5
commit b4664cd854
1 changed files with 7 additions and 0 deletions

View File

@ -14,10 +14,14 @@ public class MoveListStrategyTest {
private MoveStrategy moveList; private MoveStrategy moveList;
@Nested @Nested
@DisplayName("MoveListStrategy") @DisplayName("MoveListStrategy")
class MoveList { class MoveList {
/**
* Creates a new MoveListStrategy
*/
@BeforeEach @BeforeEach
void setup() { void setup() {
try { try {
@ -27,6 +31,9 @@ public class MoveListStrategyTest {
} }
} }
/**
* Checks if the directions are returned correct by method nextMove
*/
@Test @Test
void checkMove() { void checkMove() {
Assertions.assertEquals(PositionVector.Direction.RIGHT,moveList.nextMove()); Assertions.assertEquals(PositionVector.Direction.RIGHT,moveList.nextMove());