diff --git a/test/ch/zhaw/catan/SiedlerGameTest.java b/test/ch/zhaw/catan/SiedlerGameTest.java index 8452e48..11f656c 100644 --- a/test/ch/zhaw/catan/SiedlerGameTest.java +++ b/test/ch/zhaw/catan/SiedlerGameTest.java @@ -84,7 +84,7 @@ public class SiedlerGameTest { public void TestGameInitializationWithAllPlayerCounts(int playerAmount) { SiedlerGame game = new SiedlerGame(DEFAULT_WINPOINTS, playerAmount); - for (Config.Faction faction : game.getPlayerFactions()) { + for (int i = 0 ; i < game.getPlayerFactions().size(); i++) { HashMap resources = game.getCurrentPlayerResource(); Assertions.assertEquals(0, resources.get(Config.Resource.BRICK)); @@ -157,7 +157,7 @@ public class SiedlerGameTest { @DisplayName("Starting Siedler game with one player, expects fail") public void startSiedlerGameWithLowerThanMinimumWinPoints() { Exception exc = assertThrows(IllegalArgumentException.class, () -> { - SiedlerGame game = new SiedlerGame(1, 4); + new SiedlerGame(1, 4); }); Assertions.assertEquals(IllegalArgumentException.class, exc.getClass());