From 291652d4030faaee7e3a57460036f3b85adaa040 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Mon, 5 Feb 2024 19:56:13 +0100 Subject: [PATCH] refactoring: fix test in PlayerServiceTest --- src/test/java/de/hsfulda/onses/PlayerServiceTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/de/hsfulda/onses/PlayerServiceTest.java b/src/test/java/de/hsfulda/onses/PlayerServiceTest.java index 74333b8..c629c71 100644 --- a/src/test/java/de/hsfulda/onses/PlayerServiceTest.java +++ b/src/test/java/de/hsfulda/onses/PlayerServiceTest.java @@ -123,6 +123,7 @@ public class PlayerServiceTest { Card card2 = new Card().setColor(Card.Color.RED).setValue(Card.Value.ONE); gameService.getGame().setLastPlayedCard(new Card().setColor(Card.Color.RED).setValue(Card.Value.FIVE)); + gameService.setTest(true); gameService.getGame().getPlayerService().setCurrentTurn(false); gameService.getGame().getPlayerService().getPlayerList().getLast().addCardToPlayerDeck(card1);