From 4d0ed9b3274c2ab3a13cdaa76ce02458f6f382c3 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 01:09:25 +0100 Subject: [PATCH] Create Test for CreateFrame Method --- src/test/java/Gui/guiTest.java | 26 ++++++++++++++++++ target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 3609 -> 3695 bytes target/maven-archiver/pom.properties | 2 +- .../default-testCompile/inputFiles.lst | 1 + 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/test/java/Gui/guiTest.java 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 2fc77734cd8bb6088083626b2bfe33c35058523c..4dd2e3175a69f944ef57644f0bfa5525eab8317a 100644 GIT binary patch delta 1984 zcmY*a2T&7O5KRIxkOCO05-Acy=^c>{667dH=)DRdpoDTDO+x6Ll*3TOP(nwfHw}tX z!@)@v5tX785jdnIHaw3@&hcjM|M|Orci!&&zdN(97`2On+gNaLLILc>!<`401|hif z)NZroqy!PcUFPt+U4FFy7yx+11ppveD6>es5-t+2=y$~@BI3H^ww;}sz>xy?+M7zg z^*0=*3W6EPrroq41hldr(iV6nxEF2V980Uv(yCZdPIo(OWi4!Wft$t=Sgq-B|BOs}!2g4=Y%|gMEJ6sc}}etyshL?!m=r z#(_2I+Dr7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