updated SiedlerGameTest
This commit is contained in:
parent
9ccdfd9f2b
commit
577484457c
|
@ -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<Config.Resource, Integer> 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());
|
||||
|
|
Loading…
Reference in New Issue