diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index 87071b9..208dac7 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -243,6 +243,19 @@ public class GameServiceTest { assertEquals(expected, answer); } + @Test + @DisplayName("DrawCardPlayerDeckBot") + public void DrawCardPlayerDeckBot() { + GameService gameService = new GameService(); + gameService.getGame().getPlayerService().setCurrentTurn(false); + int before = gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck().size(); + gameService.drawCard(2); + int after = gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck().size(); + + int expected = 2; + int answer = after - before; + assertEquals(expected, answer); + } @Test @DisplayName("DrawCardDeckTest")