|
@ -1,6 +1,7 @@ |
|
|
package de.tims.fleetstorm.matchfield; |
|
|
package de.tims.fleetstorm.matchfield; |
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
|
|
import static org.junit.Assert.assertFalse; |
|
|
import static org.junit.Assert.assertTrue; |
|
|
import static org.junit.Assert.assertTrue; |
|
|
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
|
|
|
|
|
@ -74,6 +75,7 @@ class CoordinateTest { |
|
|
matchfield.setShip(new Coordinate(3, 3), 4, 1); |
|
|
matchfield.setShip(new Coordinate(3, 3), 4, 1); |
|
|
|
|
|
|
|
|
assertTrue(matchfield.getField(0, 0).shoot()); |
|
|
assertTrue(matchfield.getField(0, 0).shoot()); |
|
|
|
|
|
assertFalse(matchfield.getField(0, 0).shoot()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |