diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-04 19:09:39 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-04 19:09:39 +0200 |
commit | 6e9c1b539b412dc08716eb3f88adb53b3021a27b (patch) | |
tree | e7162d24700fb26b7103dc0f69705f70423cd288 /test/jrummikub/model | |
parent | 8e32bc9e696216129266406c085d59731aae043c (diff) | |
download | JRummikub-6e9c1b539b412dc08716eb3f88adb53b3021a27b.tar JRummikub-6e9c1b539b412dc08716eb3f88adb53b3021a27b.zip |
Test für Austeilen geschrieben, eine Menge getSize hinzugefügt
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@116 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub/model')
-rw-r--r-- | test/jrummikub/model/GameStateTest.java | 8 |
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()); } } |