Browse Source

Call the methods for testing

master
Leon Montag 2 years ago
parent
commit
19dd816462
  1. 27
      src/test/java/Gui/GameGuiTest.java
  2. 1
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

27
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();
}
}

1
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
Loading…
Cancel
Save