From bfe11ff7d9b92ba2085170e4554835b80c1a6270 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:56:25 +0100 Subject: [PATCH] unittest: Added test to BlackJackTest This tests whether the player is in the game or not --- src/test/java/org/bitbiome/classes/BlackJackTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/bitbiome/classes/BlackJackTest.java b/src/test/java/org/bitbiome/classes/BlackJackTest.java index d6da1c2..0534913 100644 --- a/src/test/java/org/bitbiome/classes/BlackJackTest.java +++ b/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)); + } + }