diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index e2d77d4..87071b9 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -256,6 +256,19 @@ public class GameServiceTest { int answer = before - after; assertEquals(expected, answer); } + @Test + @DisplayName("DrawCardPlayerDeck") + public void DrawCardPlayerDeck() { + GameService gameService = new GameService(); + gameService.getGame().getPlayerService().setCurrentTurn(true); + int before = gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck().size(); + gameService.drawCard(4); + int after = gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck().size(); + + int expected = 4; + int answer = after - before; + assertEquals(expected, answer); + } @Test @DisplayName("CheckThatBotDeckHasSevenCardsAfterGameStart")