Browse Source

Test.CheckIfCardsInBotDeckAreFaceDown

main
fdai7793 12 months ago
parent
commit
f24334bc2a
  1. 10
      src/test/java/de/hsfulda/onses/GameServiceTest.java

10
src/test/java/de/hsfulda/onses/GameServiceTest.java

@ -494,4 +494,14 @@ public class GameServiceTest {
assertFalse(gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck().get(i).isFacedown());
}
}
@Test
@DisplayName("CheckIfCardsInBotDeckAreFaceDown")
public void CheckIfCardsInBotDeckAreFaceDown() {
GameService gameService = new GameService();
for (int i = 0; i < gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck().size(); i++) {
assertTrue(gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck().get(i).isFacedown());
}
}
}
Loading…
Cancel
Save