From 73c6a25694a3e0eb1125a46f5e87a58e71d31cc1 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sat, 3 Feb 2024 15:29:21 +0100 Subject: [PATCH] Test.CheckFirstCardIsSet --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index 81ab433..91d2c82 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -276,4 +276,15 @@ public class GameServiceTest { assertEquals(expected, counter); } + @Test + @DisplayName("CheckFirstCardIsSet") + public void CheckFirstCardIsSet () + { + GameService gameService = new GameService(); + Card card = gameService.getGame().getLastPlayedCard(); + + boolean answer = card != null; + + assertTrue(answer); + } }