Skip to content
Snippets Groups Projects
Commit 9a7f8888 authored by iliya's avatar iliya
Browse files

feat: started to test GameManager class

parent 51c9d8fe
No related branches found
No related tags found
No related merge requests found
package hepia; package hepia;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class GameManagerTest { public class GameManagerTest {
@Test
public void invalidNumberOfPlayers() {
int nbHumanPlayers = 6;
int nbBasicAi = 1;
int nbAdvancedAi = 1;
int nbDecks = 3;
assertThrows(RuntimeException.class, () -> new GameManager(Game.BLACKJACK, nbHumanPlayers, nbBasicAi, nbAdvancedAi, nbDecks));
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment