|
@ -74,7 +74,8 @@ class GameTest |
|
|
@ParameterizedTest |
|
|
@ParameterizedTest |
|
|
// row, col |
|
|
// row, col |
|
|
@CsvSource({ |
|
|
@CsvSource({ |
|
|
"0, 0" |
|
|
|
|
|
|
|
|
"0, 0", // schwarzer Turm a8 |
|
|
|
|
|
"0, 7" // schwarzer Turm h8 |
|
|
}) |
|
|
}) |
|
|
void newGameInitializationFigurePositionsRooks(int row, int col) |
|
|
void newGameInitializationFigurePositionsRooks(int row, int col) |
|
|
{ |
|
|
{ |
|
@ -83,14 +84,6 @@ class GameTest |
|
|
g.mField[Figure.fieldLength * row + col].getClass()); |
|
|
g.mField[Figure.fieldLength * row + col].getClass()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void newGameInitializationFigurePositionsRook2() |
|
|
|
|
|
{ |
|
|
|
|
|
// schwarzer Turm h8 |
|
|
|
|
|
assertEquals(new FigureRook().getClass(), |
|
|
|
|
|
g.mField[Figure.fieldLength * 0 + 7].getClass()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void moveFarmerWhite() // weißer Bauer ganz links um ein Feld noch vorne bewegen |
|
|
void moveFarmerWhite() // weißer Bauer ganz links um ein Feld noch vorne bewegen |
|
|
{ |
|
|
{ |
|
|