|
|
@ -16,7 +16,7 @@ class LogicTest { |
|
|
|
@Test |
|
|
|
void testFieldIsNotNull() { |
|
|
|
matchfield.createMatchfield(); |
|
|
|
int[] calcResult = logic.chooseField(matchfield); |
|
|
|
Coordinate calcResult = logic.chooseField(matchfield); |
|
|
|
assertNotNull(calcResult); |
|
|
|
} |
|
|
|
|
|
|
@ -30,8 +30,8 @@ class LogicTest { |
|
|
|
} |
|
|
|
// matchfield.setState(0, 0, Matchfield.EMPTY); |
|
|
|
|
|
|
|
int[] choosenField = logic.chooseField(matchfield); |
|
|
|
int calcState = matchfield.getState(choosenField[0], choosenField[1]); |
|
|
|
Coordinate choosenField = logic.chooseField(matchfield); |
|
|
|
int calcState = matchfield.getState(choosenField.getX(), choosenField.getY()); |
|
|
|
assertNotEquals(calcState, Coordinate.SHOT); |
|
|
|
} |
|
|
|
} |