From e43b4b894adb215bcc8dc5036afc5d4c3efb5249 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sun, 4 Feb 2024 20:04:46 +0100 Subject: [PATCH] Test.CheckThatPlayerReceivedSevenCards --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index d4b5753..dceb8f7 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -291,4 +291,14 @@ public class GameServiceTest { assertEquals(Card.Color.BLACK, card.getColor()); } + + @Test + @DisplayName("CheckThatPlayerReceivedSevenCards") + public void CheckThatPlayerReceivedSevenCards() { + GameService gameService = new GameService(); + + int numberOfCards = gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck().size(); + + assertEquals(7, numberOfCards); + } }