From c558b1287cd5a47f01ebfe6d851eb62ad53df080 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:51:06 +0100 Subject: [PATCH] unittest: Created BlackJackTest This test tests the Entity ID from the Player --- .../org/bitbiome/classes/BlackJackTest.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/test/java/org/bitbiome/classes/BlackJackTest.java diff --git a/src/test/java/org/bitbiome/classes/BlackJackTest.java b/src/test/java/org/bitbiome/classes/BlackJackTest.java new file mode 100644 index 0000000..35247ff --- /dev/null +++ b/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)); + } + +}