Browse Source

Test.PlaySevenBotDeck

main
fdai7906 11 months ago
parent
commit
399a43075f
  1. 10
      src/test/java/de/hsfulda/onses/GameServiceTest.java

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

@ -487,4 +487,14 @@ public class GameServiceTest {
ArrayList<Card> answer = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck()); ArrayList<Card> answer = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck());
assertEquals(botDeck, answer); assertEquals(botDeck, answer);
} }
@Test
@DisplayName("PlaySevenBotDeckIsNowPlayerDeck")
public void PlaySevenBotDeckIsNowPlayerDeck() {
GameService gameService = new GameService();
ArrayList<Card> playerDeck = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck());
gameService.playSeven();
ArrayList<Card> answer = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck());
assertEquals(playerDeck, answer);
}
} }
Loading…
Cancel
Save