|
|
@ -1,6 +1,8 @@ |
|
|
|
import BattleShip.BShip; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertNotNull; |
|
|
|
|
|
|
|
class BShipTest { |
|
|
|
@Test |
|
|
|
public void testStartGame() { |
|
|
@ -9,5 +11,8 @@ class BShipTest { |
|
|
|
bShip.autoPlacement = true; |
|
|
|
|
|
|
|
bShip.startGame(); |
|
|
|
|
|
|
|
assertNotNull(bShip.grid1); |
|
|
|
assertNotNull(bShip.grid2); |
|
|
|
} |
|
|
|
} |
xxxxxxxxxx