Browse Source

unittest: Added test to BlackJackTest

This tests whether the player is in the game or not
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
bfe11ff7d9
  1. 6
      src/test/java/org/bitbiome/classes/BlackJackTest.java

6
src/test/java/org/bitbiome/classes/BlackJackTest.java

@ -4,6 +4,7 @@ import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class BlackJackTest {
@ -32,4 +33,9 @@ public class BlackJackTest {
assertEquals("BitBiome", bj.getPlayerName(BlackJack.Entity.BOT));
}
@Test
public void testPlayerIsIn() {
assertTrue(bj.isIn(BlackJack.Entity.PLAYER));
}
}
Loading…
Cancel
Save