Browse Source

Create Test for CreateFrame Method

master
Leon Montag 2 years ago
parent
commit
4d0ed9b327
  1. 26
      src/test/java/Gui/guiTest.java
  2. BIN
      target/MiniGameProject-1.0-SNAPSHOT.jar
  3. 2
      target/maven-archiver/pom.properties
  4. 1
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

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

BIN
target/MiniGameProject-1.0-SNAPSHOT.jar

2
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

1
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

@ -0,0 +1 @@
C:\Users\Leon\MiniGameProject\src\test\java\Gui\guiTest.java
Loading…
Cancel
Save