From c3bec115ae5527789befa140f69714ff7da6f533 Mon Sep 17 00:00:00 2001 From: Thoumi Ngonga Brice Date: Wed, 8 Feb 2023 18:10:37 +0100 Subject: [PATCH] Add Uni Test AIGridGUI --- src/test/java/AIGridGUITest.java | 5 ++++- target/test-classes/AIGridGUITest.class | Bin 536 -> 672 bytes 2 files changed, 4 insertions(+), 1 deletion(-) 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 09e5c68b0f3557886d7a56f338a496d3f31e369f..cc50bade1ca972ed0bb09ec8cc84cd0cbea744bf 100644 GIT binary patch delta 281 zcmXYsyGp|V6o$W3W20%T(bjs2cda*&j4nDjIAm~ia10V8Qk$5IgNuVtP`bDXZq9;; zIQRfQlz0+d{&V5~zr%Sno=2_kpU*Ggi0y&(bZ%kNvS~9T)UV^)@GKFG9e>xim}Smn z-e!S@uo|bA-c`|$a@8ct!_*6s$UDxmFwLX5p9ywQ4JS86(8~rd7ma!vW<@U-#2=2y zow&mX>E18ub&Hy+iNQEa+S!O|n`KtC>NV=>aJ4_xT6(AU-msm6ccu@WefNXTt1fGl luqGp_6AEqOFj)aRf1!V1`Q;kx3f`cFvV~2J2;B;@^$V+OD|P?? delta 144 zcmZ3$I)jDl)W2Q(7#J9A8Du7M&7H)UJh_0ef>CJlOGecKVW2n{0~3&BWnf`oXAl9h zco-OgqzHp3gBXxzWDsXy1F8@LvbDi{px8zrgNXs8nGLL%2T3C%RHFn`RuZg93ampK E0P;Q!H~;_u