Browse Source

Uni Test AIGridGUITest (update)

main
Thoumi Ngonga Brice 2 years ago
parent
commit
5b0df93808
  1. 4
      src/test_/java/AIGridGUITest.java

4
src/test_/java/AIGridGUITest.java

@ -39,6 +39,10 @@ public class AIGridGUITest {
@Test
public void testPlaceShips() {
AIGridGUI aiGridGUI = new AIGridGUI(10, 10);
aiGridGUI.placeShips();
assertEquals(100, aiGridGUI.listeners.size());
assertEquals("Place destroyer. Right click to toggle horizontal/vertical.", aiGridGUI.text);
}
}
Loading…
Cancel
Save