Javadoc in MoveListStrategyTest
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user