Browse Source

unittest: Created BlackJackTest

This test tests the Entity ID from the Player
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
c558b1287c
  1. 20
      src/test/java/org/bitbiome/classes/BlackJackTest.java

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

@ -0,0 +1,20 @@
package org.bitbiome.classes;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class BlackJackTest {
private static BlackJack bj;
@BeforeAll
public static void setUpTest() {
bj = new BlackJack("UnitTest");
}
@Test
public void testGetEntity() {
assertEquals(BlackJack.Entity.PLAYER, bj.getEntity(1));
}
}
Loading…
Cancel
Save