removed PositionVectorNotValidException.java
This commit is contained in:
parent
a2dcc1b0d8
commit
7b6fc70e05
|
@ -112,22 +112,14 @@ class GameTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void carTurnCorrect() {
|
void carTurnCorrect() {
|
||||||
try {
|
|
||||||
game.doCarTurn(RIGHT);
|
game.doCarTurn(RIGHT);
|
||||||
Assertions.assertEquals(new PositionVector(1, 0), game.getCarVelocity(0));
|
Assertions.assertEquals(new PositionVector(1, 0), game.getCarVelocity(0));
|
||||||
} catch (PositionVectorNotValidException positionVectorNotValidException) {
|
|
||||||
positionVectorNotValidException.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void carCrash() {
|
void carCrash() {
|
||||||
try {
|
|
||||||
game.doCarTurn(PositionVector.Direction.UP);
|
game.doCarTurn(PositionVector.Direction.UP);
|
||||||
Assertions.assertTrue(game.onlyOneCarLeft());
|
Assertions.assertTrue(game.onlyOneCarLeft());
|
||||||
} catch (PositionVectorNotValidException positionVectorNotValidException) {
|
|
||||||
positionVectorNotValidException.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue