Browse Source

update UnitTest BShipTest

main
fdai4581 2 years ago
parent
commit
cbc1c09d4b
  1. 5
      src/test_/java/BShipTest.java

5
src/test_/java/BShipTest.java

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