GameState ist jetzt RoundState
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@249 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
d0a7014577
commit
b3c903a2ad
7 changed files with 19 additions and 19 deletions
|
@ -1,35 +0,0 @@
|
|||
package jrummikub.model;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
/**
|
||||
* Test class for {@link GameState}
|
||||
*/
|
||||
public class GameStateTest {
|
||||
private IGameState testGame;
|
||||
|
||||
/** */
|
||||
@Before
|
||||
public void createGame() {
|
||||
testGame = new GameState();
|
||||
}
|
||||
|
||||
/** */
|
||||
@Test
|
||||
public void nextActiveTest() {
|
||||
// All there?
|
||||
assertEquals(4, testGame.getPlayerCount());
|
||||
assertSame(Color.red, testGame.getActivePlayer().getColor());
|
||||
testGame.nextPlayer();
|
||||
assertSame(Color.yellow, testGame.getActivePlayer().getColor());
|
||||
testGame.nextPlayer();
|
||||
testGame.nextPlayer();
|
||||
testGame.nextPlayer();
|
||||
assertSame(Color.red, testGame.getActivePlayer().getColor());
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue