From d1c5543676dc2ebb984d7b2cc1aa570bf25dd308 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 16:45:02 +0100 Subject: [PATCH] Test.CurrentCard --- src/test/java/de/hsfulda/onses/PlayerTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/PlayerTest.java b/src/test/java/de/hsfulda/onses/PlayerTest.java index 8f99ad7..f89e280 100644 --- a/src/test/java/de/hsfulda/onses/PlayerTest.java +++ b/src/test/java/de/hsfulda/onses/PlayerTest.java @@ -88,4 +88,12 @@ public class PlayerTest { player.setEnemy(true); assertTrue(player.isEnemy()); } + @Test + @DisplayName("CurrentCard") + public void CurrentCard() { + Player player = new Player(); + Card card = new Card().setValue(Card.Value.ONE).setColor(Card.Color.GREEN); + player.setCurrentCard(card); + assertEquals(card, player.getCurrentCard()); + } }