From c08df3bc8f4ca92263ffeced2ed0796712f139b2 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:59:11 +0100 Subject: [PATCH] unittest: Added test to BlackJackTest This tests whether the bot is in the game or not --- src/test/java/org/bitbiome/classes/BlackJackTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/bitbiome/classes/BlackJackTest.java b/src/test/java/org/bitbiome/classes/BlackJackTest.java index 0534913..30752e0 100644 --- a/src/test/java/org/bitbiome/classes/BlackJackTest.java +++ b/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.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 { @@ -38,4 +37,8 @@ public class BlackJackTest { assertTrue(bj.isIn(BlackJack.Entity.PLAYER)); } + @Test + public void testBotIsIn() { + assertTrue(bj.isIn(BlackJack.Entity.BOT)); + } }