Browse Source

unittest: Added test to BlackJackTest

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

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

@ -3,8 +3,7 @@ package org.bitbiome.classes;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;
public class BlackJackTest { public class BlackJackTest {
@ -38,4 +37,8 @@ public class BlackJackTest {
assertTrue(bj.isIn(BlackJack.Entity.PLAYER)); assertTrue(bj.isIn(BlackJack.Entity.PLAYER));
} }
@Test
public void testBotIsIn() {
assertTrue(bj.isIn(BlackJack.Entity.BOT));
}
} }
Loading…
Cancel
Save