From 13956db449db3d3f0e87d351fa0ec74c7cd0bb74 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Mon, 16 Jan 2023 23:59:01 +0100 Subject: [PATCH] =?UTF-8?q?created=20test=20for=20checking=20=C3=ADf=20cur?= =?UTF-8?q?rent=20Question=20variable=20is=20incremented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/Gui/GameGuiTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/java/Gui/GameGuiTest.java b/src/test/java/Gui/GameGuiTest.java index a91aa6a..aa7ebcf 100644 --- a/src/test/java/Gui/GameGuiTest.java +++ b/src/test/java/Gui/GameGuiTest.java @@ -74,6 +74,12 @@ class GameGuiTest { GameGui.currentQuestion = 1; gameGui.createShowQuestion(1 ,file.getAbsolutePath()); assertEquals("Frage 1: 1 Euro", GameGui.CurrentQuestionNrLabel.getText()); - + } + + @Test + public void testCreateShowQuestionCounter() { + gameGui.currentQuestion = 1; + gameGui.createShowQuestion(1, "QandA/Money.txt"); + assertEquals(2, gameGui.currentQuestion); } }