From a8805f66706223696c76409d963f7f4f847db3f5 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 16:36:04 +0100 Subject: [PATCH] Test.BotisEnemy Constructor --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index 617a523..0e02461 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -497,4 +497,13 @@ public class GameServiceTest { ArrayList answer = new ArrayList<>(gameService.getGame().getPlayerService().getPlayerList().getLast().getPlayerDeck()); assertEquals(playerDeck, answer); } + + @Test + @DisplayName("BotisEnemy") + public void botIsEnemy() { + GameService gameService = new GameService(); + boolean answer = gameService.getGame().getPlayerService().getPlayerList().getLast().isEnemy(); + boolean expected = true; + assertEquals(expected, answer); + } }