summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/model')
-rw-r--r--test/jrummikub/model/GameStateTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/jrummikub/model/GameStateTest.java b/test/jrummikub/model/GameStateTest.java
index 8887e78..a134231 100644
--- a/test/jrummikub/model/GameStateTest.java
+++ b/test/jrummikub/model/GameStateTest.java
@@ -18,13 +18,13 @@ public class GameStateTest {
@Test
public void nextActiveTest() {
// All there?
- assertEquals(4, testGame.players.size());
- assertSame(Color.red, testGame.activePlayer().getColor());
+ assertEquals(4, testGame.getPlayerCount());
+ assertSame(Color.red, testGame.getActivePlayer().getColor());
testGame.nextPlayer();
- assertSame(Color.yellow, testGame.activePlayer().getColor());
+ assertSame(Color.yellow, testGame.getActivePlayer().getColor());
testGame.nextPlayer();
testGame.nextPlayer();
testGame.nextPlayer();
- assertSame(Color.red, testGame.activePlayer().getColor());
+ assertSame(Color.red, testGame.getActivePlayer().getColor());
}
}