diff --git a/src/test_/java/BShipTest.java b/src/test_/java/BShipTest.java new file mode 100644 index 0000000..9b5813a --- /dev/null +++ b/src/test_/java/BShipTest.java @@ -0,0 +1,18 @@ +import BattleShip.BShip; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertNotNull; + +class BShipTest { + @Test + public void testStartGame() { + BShip bShip = new BShip(); + + bShip.autoPlacement = true; + + bShip.startGame(); + + assertNotNull(bShip.grid1); + assertNotNull(bShip.grid2); + } +} \ No newline at end of file