From 19dd8164621e226cb4c14b2790bc4285a80bb2f2 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 21:46:32 +0100 Subject: [PATCH] Call the methods for testing --- src/test/java/Gui/GameGuiTest.java | 27 +++++++++++++++++++ .../default-testCompile/inputFiles.lst | 1 + 2 files changed, 28 insertions(+) create mode 100644 src/test/java/Gui/GameGuiTest.java diff --git a/src/test/java/Gui/GameGuiTest.java b/src/test/java/Gui/GameGuiTest.java new file mode 100644 index 0000000..8e291a3 --- /dev/null +++ b/src/test/java/Gui/GameGuiTest.java @@ -0,0 +1,27 @@ +package Gui; + +import static org.junit.jupiter.api.Assertions.*; + +import java.awt.GridBagConstraints; +import java.awt.Insets; + +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInstance; +import org.junit.jupiter.api.TestInstance.Lifecycle; + +@TestInstance(Lifecycle.PER_CLASS) +class GameGuiTest { + GameGui gameGui = new GameGui(); + gui Gui = new gui(); + + @BeforeAll + void setUp(){ + Gui.StartMainMenu(); + gameGui.createGui(); + } + + + +} diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index ff43633..17c97ad 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,2 +1,3 @@ C:\Users\Leon\MiniGameProject\src\test\java\Gui\guiTest.java +C:\Users\Leon\MiniGameProject\src\test\java\Gui\GameGuiTest.java C:\Users\Leon\MiniGameProject\src\test\java\game\runGameTest.java