From 446b970efec54c9d8971589c9528821fa6f4a3da Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Fri, 2 Feb 2024 16:29:28 +0100 Subject: [PATCH] Test.SkipTest --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index c76e1d4..906c5c4 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -185,4 +185,16 @@ public class GameServiceTest { assertEquals(expected, answer2); } + @Test + @DisplayName("SkipTest") + public void SkipTest () + { + GameService gameservice = new GameService(); + boolean expected = gameservice.getGame().getPlayerService().getCurrentTurn(); + + gameservice.playCard(new Player(), new Card().setValue(Card.Value.SKIP).setColor(Card.Color.BLACK)); + + assertEquals(expected, gameservice.getGame().getPlayerService().getCurrentTurn()); + } + }