Browse Source

Test.CurrentCard

main
fdai7906 11 months ago
parent
commit
d1c5543676
  1. 8
      src/test/java/de/hsfulda/onses/PlayerTest.java

8
src/test/java/de/hsfulda/onses/PlayerTest.java

@ -88,4 +88,12 @@ public class PlayerTest {
player.setEnemy(true); player.setEnemy(true);
assertTrue(player.isEnemy()); assertTrue(player.isEnemy());
} }
@Test
@DisplayName("CurrentCard")
public void CurrentCard() {
Player player = new Player();
Card card = new Card().setValue(Card.Value.ONE).setColor(Card.Color.GREEN);
player.setCurrentCard(card);
assertEquals(card, player.getCurrentCard());
}
} }
Loading…
Cancel
Save