summaryrefslogtreecommitdiff
path: root/game-engine/src/test
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-04-25 21:46:37 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-04-25 21:46:37 +0200
commit839975bd8762a944e34a367e85ba98d74dee8e5c (patch)
treeea81680204a27c42e2f5549ecd93eef1bfe004a6 /game-engine/src/test
parentAdd tests for BuildWonderMove (diff)
downloadseven-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.java3
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);
bgstack15