Browse Source

Test.BotisEnemy Constructor

main
fdai7906 11 months ago
parent
commit
a8805f6670
  1. 9
      src/test/java/de/hsfulda/onses/GameServiceTest.java

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

@ -497,4 +497,13 @@ public class GameServiceTest {
ArrayList<Card> answer = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck()); ArrayList<Card> answer = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck());
assertEquals(playerDeck, answer); assertEquals(playerDeck, answer);
} }
@Test
@DisplayName("BotisEnemy")
public void botIsEnemy() {
GameService gameService = new GameService();
boolean answer = gameService.getGame().getPlayerService().getPlayerList().getLast().isEnemy();
boolean expected = true;
assertEquals(expected, answer);
}
} }
Loading…
Cancel
Save