From 0649d639906897503d249d6c1c8a3365e5d07a49 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 16:35:20 +0100 Subject: [PATCH] Test.BotisEnemy getter setter --- 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 48b59c9..8f99ad7 100644 --- a/src/test/java/de/hsfulda/onses/PlayerTest.java +++ b/src/test/java/de/hsfulda/onses/PlayerTest.java @@ -80,4 +80,12 @@ public class PlayerTest { String answer = playerService.getPlayerList().getFirst().getPlayerName(); assertEquals(name2, answer); } + + @Test + @DisplayName("BotIsEnemy") + public void BotIsEnemy() { + Player player = new Player(); + player.setEnemy(true); + assertTrue(player.isEnemy()); + } }