diff --git a/src/test/java/de/hsfulda/onses/PlayerServiceTest.java b/src/test/java/de/hsfulda/onses/PlayerServiceTest.java index b5c5b3b..1e32e55 100644 --- a/src/test/java/de/hsfulda/onses/PlayerServiceTest.java +++ b/src/test/java/de/hsfulda/onses/PlayerServiceTest.java @@ -54,8 +54,12 @@ public class PlayerServiceTest { int expected = 3; // act PlayerService playerservice = new PlayerService(); + int before = playerservice.getPlayerList().size(); + playerservice.addOpponents(input); - int answer = playerservice.getPlayerList().size(); + + int after = playerservice.getPlayerList().size(); + int answer = after - before; // assert assertEquals(expected, answer); }