@Test public void testThatGameBoardIsNotEmptyAfterAddingShips() { GameBoard gb = new GameBoard(10, 10, 2); ArrayList<Ship> ships = new ArrayList<Ship>(); ships.add(new Ship(3, 3, 3, true)); ships.add(new Ship(4, 6, 2, true)); gb.checkAndPlaceShips(ships, "bottom"); Assert.assertFalse(gb.isEmpty()); }
@Test public void testIsGameBoardEmpty() { GameBoard gb = new GameBoard(10, 10, 5); Assert.assertTrue(gb.isEmpty()); }