import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class CardGameTest { CardGame cardGame; @org.junit.jupiter.api.Test @BeforeEach void setUp() { cardGame = new CardGame(10, 2); } @Test void createDeck() { assertEquals(2, cardGame.players.length); for (int i = 0; i < 2; i++) { assertEquals(20, cardGame.players[i].drawPile.size()); } } @Test void play() { cardGame.play(); } }