diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-25 21:46:37 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-25 21:46:37 +0200 |
commit | 839975bd8762a944e34a367e85ba98d74dee8e5c (patch) | |
tree | ea81680204a27c42e2f5549ecd93eef1bfe004a6 /game-engine/src/test | |
parent | Add tests for BuildWonderMove (diff) | |
download | seven-wonders-839975bd8762a944e34a367e85ba98d74dee8e5c.tar.gz seven-wonders-839975bd8762a944e34a367e85ba98d74dee8e5c.tar.bz2 seven-wonders-839975bd8762a944e34a367e85ba98d74dee8e5c.zip |
Extract min/max players as JSON rules
Diffstat (limited to 'game-engine/src/test')
-rw-r--r-- | game-engine/src/test/java/org/luxons/sevenwonders/game/data/GameDefinitionTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); |