From 3b2043196b38b2a50480ac21c0a7edd4a8a71c5c Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sun, 4 Feb 2024 19:58:49 +0100 Subject: [PATCH] refactoring: removeOutdatedTest --- .../java/de/hsfulda/onses/GameServiceTest.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index 2ea1066..d4b5753 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -257,24 +257,6 @@ public class GameServiceTest { assertEquals(expected, answer); } - @Test - @DisplayName("DrawCardDeckRemoveTest") - public void DrawCardDeckRemoveTest() { - GameService gameService = new GameService(); - Card card = gameService.getGame().getDrawCardDeck().getFirst(); - gameService.drawCard(1); - int counter = 0; - int expected = 0; - for (int i = 0; i < gameService.getGame().getDrawCardDeck().size(); i++) { - if (gameService.getGame().getDrawCardDeck().get(i).getColor() == card.getColor() && gameService.getGame().getDrawCardDeck().get(i).getValue() == card.getValue()) - counter++; - } - if (card.getColor() == Card.Color.BLACK) expected = 3; - else expected = 1; - - assertEquals(expected, counter); - } - @Test @DisplayName("CheckFirstCardIsSet") public void CheckFirstCardIsSet() {