From 1637ecf8ba4cd60cb41ad705b55a468706d0f06b Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sun, 4 Feb 2024 20:08:02 +0100 Subject: [PATCH] Test.CheckThatBotDeckHasSevenCardsAfterGameStart --- 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 dceb8f7..df7bfdd 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -257,6 +257,17 @@ public class GameServiceTest { assertEquals(expected, answer); } + @Test + @DisplayName("CheckThatBotDeckHasSevenCardsAfterGameStart") + public void CheckThatBotDeckHasSevenCardsAfterGameStart() { + GameService gameService = new GameService(); + + int expected = 7; + int actual = gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck().size(); + + assertEquals(expected, actual); + } + @Test @DisplayName("CheckFirstCardIsSet") public void CheckFirstCardIsSet() {