|
@ -3,6 +3,8 @@ package de.fd.fh; |
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
import org.junit.jupiter.params.ParameterizedTest; |
|
|
|
|
|
import org.junit.jupiter.params.provider.CsvSource; |
|
|
|
|
|
|
|
|
import static org.hamcrest.MatcherAssert.assertThat; |
|
|
import static org.hamcrest.MatcherAssert.assertThat; |
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
@ -69,12 +71,16 @@ class GameTest |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void newGameInitializationFigurePositionsRooks() |
|
|
|
|
|
|
|
|
@ParameterizedTest |
|
|
|
|
|
// row, col |
|
|
|
|
|
@CsvSource({ |
|
|
|
|
|
"0, 0" |
|
|
|
|
|
}) |
|
|
|
|
|
void newGameInitializationFigurePositionsRooks(int row, int col) |
|
|
{ |
|
|
{ |
|
|
// schwarzer Turm a8 |
|
|
// schwarzer Turm a8 |
|
|
assertEquals(new FigureRook().getClass(), |
|
|
assertEquals(new FigureRook().getClass(), |
|
|
g.mField[Figure.fieldLength * 0 + 0].getClass()); |
|
|
|
|
|
|
|
|
g.mField[Figure.fieldLength * row + col].getClass()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|