Browse Source

Test.ReverseTest

main
fdai7906 11 months ago
parent
commit
8a36e4f173
  1. 12
      src/test/java/de/hsfulda/onses/GameServiceTest.java

12
src/test/java/de/hsfulda/onses/GameServiceTest.java

@ -197,4 +197,16 @@ public class GameServiceTest {
assertEquals(expected, gameservice.getGame().getPlayerService().getCurrentTurn()); assertEquals(expected, gameservice.getGame().getPlayerService().getCurrentTurn());
} }
@Test
@DisplayName("ReverseTest")
public void ReverseTest ()
{
GameService gameservice = new GameService();
boolean expected = gameservice.getGame().getPlayerService().getCurrentTurn();
gameservice.playCard(new Player(), new Card().setValue(Card.Value.REVERSE).setColor(Card.Color.BLACK));
assertEquals(expected, gameservice.getGame().getPlayerService().getCurrentTurn());
}
} }
Loading…
Cancel
Save