From 839975bd8762a944e34a367e85ba98d74dee8e5c Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Wed, 25 Apr 2018 21:46:37 +0200 Subject: Extract min/max players as JSON rules --- .../java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'game-engine/src/test') diff --git a/game-engine/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java b/game-engine/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java index c693a2a2..08e2783b 100644 --- a/game-engine/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java +++ b/game-engine/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java @@ -4,6 +4,7 @@ import org.junit.Test; import org.luxons.sevenwonders.game.Game; import org.luxons.sevenwonders.game.api.CustomizableSettings; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; public class GameDefinitionTest { @@ -12,6 +13,8 @@ public class GameDefinitionTest { public void successfulGameInit() { GameDefinition gameDefinition = new GameDefinitionLoader().getGameDefinition(); assertNotNull(gameDefinition); + assertEquals(3, gameDefinition.getMinPlayers()); + assertEquals(7, gameDefinition.getMaxPlayers()); Game game = gameDefinition.initGame(0, new CustomizableSettings(), 7); assertNotNull(game); -- cgit