From 5b0df93808adcd1fa7649d1217ec859ef473ce2f Mon Sep 17 00:00:00 2001 From: Thoumi Ngonga Brice Date: Wed, 8 Feb 2023 21:17:35 +0100 Subject: [PATCH] Uni Test AIGridGUITest (update) --- src/test_/java/AIGridGUITest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test_/java/AIGridGUITest.java b/src/test_/java/AIGridGUITest.java index aaa49e2..9325f89 100644 --- a/src/test_/java/AIGridGUITest.java +++ b/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); } }