From c6d9d282a1be2561615a820804898c5ec6a3b77a Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:53:21 +0100 Subject: [PATCH] unittest: Added test to BlackJackTest This tests the playername --- src/test/java/org/bitbiome/classes/BlackJackTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/bitbiome/classes/BlackJackTest.java b/src/test/java/org/bitbiome/classes/BlackJackTest.java index be098bc..bc4a408 100644 --- a/src/test/java/org/bitbiome/classes/BlackJackTest.java +++ b/src/test/java/org/bitbiome/classes/BlackJackTest.java @@ -22,4 +22,9 @@ public class BlackJackTest { assertEquals(BlackJack.Entity.BOT, bj.getEntity(2)); } + @Test + public void testPlayerName() { + assertEquals("UnitTest", bj.getPlayerName(BlackJack.Entity.PLAYER)); + } + }