Browse Source

Add Uni Test AIGridGUI

main
Thoumi Ngonga Brice 2 years ago
parent
commit
c3bec115ae
  1. 5
      src/test/java/AIGridGUITest.java
  2. BIN
      target/test-classes/AIGridGUITest.class

5
src/test/java/AIGridGUITest.java

@ -1,6 +1,8 @@
import BattleShip.AIGridGUI; import BattleShip.AIGridGUI;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class AIGridGUITest { public class AIGridGUITest {
@ -8,7 +10,8 @@ public class AIGridGUITest {
@Test @Test
public void testMoveUpForValidInput() { public void testMoveUpForValidInput() {
int result = aiGridGUI.moveUp(55);
assertEquals(45, result);
} }
} }

BIN
target/test-classes/AIGridGUITest.class

Loading…
Cancel
Save