Javadoc in MoveListStrategyTest
This commit is contained in:
parent
1addc2a6d5
commit
b4664cd854
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue