From 88881eaf9714ca1aa187ce91afdfc12c81c97e6e Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Tue, 6 Feb 2024 21:32:51 +0100 Subject: [PATCH] Test.CheckForGetGameOver --- src/test/java/de/hsfulda/onses/GameTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/test/java/de/hsfulda/onses/GameTest.java b/src/test/java/de/hsfulda/onses/GameTest.java index 10b0dc8..fe8fc6a 100644 --- a/src/test/java/de/hsfulda/onses/GameTest.java +++ b/src/test/java/de/hsfulda/onses/GameTest.java @@ -2,6 +2,7 @@ package de.hsfulda.onses; import de.hsfulda.onses.models.Card; import de.hsfulda.onses.models.Game; +import de.hsfulda.onses.services.GameService; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; @@ -46,6 +47,7 @@ public class GameTest { assertEquals(game.getDrawCardDeck().getFirst(), answer1); assertEquals(game.getDrawCardDeck().get(1), answer2); } + @Test @DisplayName("RelationshipGame_PlayerService") public void RelationshipGame_PlayerService() { @@ -56,4 +58,14 @@ public class GameTest { // assert assertEquals(expected, answer); } -} + + @Test + @DisplayName("CheckForGetGameOver") + public void CheckForGetGameOver() { + GameService gameService = new GameService(); + + boolean gameOver = gameService.getGame().getGameOver(); + + assertFalse(gameOver); + } +} \ No newline at end of file