Browse Source

unittest: Added test to BlackJackTest

This tests the playername
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
c6d9d282a1
  1. 5
      src/test/java/org/bitbiome/classes/BlackJackTest.java

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

@ -22,4 +22,9 @@ public class BlackJackTest {
assertEquals(BlackJack.Entity.BOT, bj.getEntity(2)); assertEquals(BlackJack.Entity.BOT, bj.getEntity(2));
} }
@Test
public void testPlayerName() {
assertEquals("UnitTest", bj.getPlayerName(BlackJack.Entity.PLAYER));
}
} }
Loading…
Cancel
Save