diff --git a/src/test/java/AIGridGUITest.java b/src/test/java/AIGridGUITest.java index 88d7aba..de23f60 100644 --- a/src/test/java/AIGridGUITest.java +++ b/src/test/java/AIGridGUITest.java @@ -1,6 +1,8 @@ import BattleShip.AIGridGUI; import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; + public class AIGridGUITest { @@ -8,7 +10,8 @@ public class AIGridGUITest { @Test public void testMoveUpForValidInput() { - + int result = aiGridGUI.moveUp(55); + assertEquals(45, result); } } diff --git a/target/test-classes/AIGridGUITest.class b/target/test-classes/AIGridGUITest.class index 09e5c68..cc50bad 100644 Binary files a/target/test-classes/AIGridGUITest.class and b/target/test-classes/AIGridGUITest.class differ