diff --git a/src/test/java/Gui/guiTest.java b/src/test/java/Gui/guiTest.java new file mode 100644 index 0000000..7c8a394 --- /dev/null +++ b/src/test/java/Gui/guiTest.java @@ -0,0 +1,26 @@ +package Gui; + +import static org.junit.jupiter.api.Assertions.*; + +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +class guiTest { + + @BeforeAll + static void setUp() { + gui StartGui = new gui(); + StartGui.StartMainMenu(); + } + + @Test + void testCreateFrame() { + //arrange + int FrameWitdh = 800; + int FrameHeight = 600; + //act + assertEquals(FrameWitdh, gui.jf.getWidth()); + assertEquals(FrameHeight, gui.jf.getHeight()); + } + +} diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index 2fc7773..4dd2e31 100644 Binary files a/target/MiniGameProject-1.0-SNAPSHOT.jar and b/target/MiniGameProject-1.0-SNAPSHOT.jar differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 87176fe..27e88a8 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Fri Dec 30 01:04:49 CET 2022 +#Fri Dec 30 01:08:26 CET 2022 groupId=MiniGameProject artifactId=MiniGameProject version=1.0-SNAPSHOT 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 e69de29..32f65f3 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 @@ -0,0 +1 @@ +C:\Users\Leon\MiniGameProject\src\test\java\Gui\guiTest.java