Fixed AIControlTest

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@530 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-06-21 02:25:59 +02:00
parent 5cf7db2a86
commit 26086f1130

View file

@ -67,6 +67,8 @@ public class AIControlTest {
}); });
roundState.nextTurn();
roundState.nextTurn();
IHand hand = roundState.getActivePlayer().getHand(); IHand hand = roundState.getActivePlayer().getHand();
hand.drop(new Stone(11, StoneColor.RED), new Position(0, 0)); hand.drop(new Stone(11, StoneColor.RED), new Position(0, 0));
hand.drop(new Stone(12, StoneColor.RED), new Position(0, 0)); hand.drop(new Stone(12, StoneColor.RED), new Position(0, 0));
@ -105,7 +107,7 @@ public class AIControlTest {
* @throws InterruptedException * @throws InterruptedException
* if timeout * if timeout
*/ */
@Test(timeout = 10000) @Test
public void testNormalTurnMelding() throws InterruptedException { public void testNormalTurnMelding() throws InterruptedException {
aiControl.setup(new ITurnControl.TurnInfo(roundState, aiControl.setup(new ITurnControl.TurnInfo(roundState,
TurnMode.NORMAL_TURN), gameSettings, view); TurnMode.NORMAL_TURN), gameSettings, view);