|
@ -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); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |