summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/jrummikub/control/RoundControlTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/jrummikub/control/RoundControlTest.java b/test/jrummikub/control/RoundControlTest.java
index f726a38..14a9bca 100644
--- a/test/jrummikub/control/RoundControlTest.java
+++ b/test/jrummikub/control/RoundControlTest.java
@@ -934,14 +934,14 @@ public class RoundControlTest {
hand.drop(new Stone(1, RED), new Position(0, 0));
hand.drop(new Stone(1, BLACK), new Position(0, 0));
hand.drop(new Stone(1, BLUE), new Position(0, 0));
- testRoundState.players.get(0).hand = hand;
+ testRound.clonedHand = hand;
view.startTurnEvent.emit();
- assertEquals(view.playerPanel.turnMode, TurnMode.INSPECT_ONLY);
+ assertEquals(TurnMode.INSPECT_ONLY, view.playerPanel.turnMode);
for (int i = 0; i < 4; i++) {
view.playerPanel.endTurnEvent.emit();
view.startTurnEvent.emit();
}
- assertEquals(view.playerPanel.turnMode, TurnMode.NORMAL_TURN);
+ assertEquals(TurnMode.NORMAL_TURN, view.playerPanel.turnMode);
}
/** */
@@ -955,11 +955,11 @@ public class RoundControlTest {
testRoundState.players.get(0).hand = hand;
testRound.clonedHand = (IHand) hand.clone();
view.startTurnEvent.emit();
- assertEquals(view.playerPanel.turnMode, TurnMode.MAY_REDEAL);
+ assertEquals(TurnMode.MAY_REDEAL, view.playerPanel.turnMode);
for (int i = 0; i < 4; i++) {
view.playerPanel.endTurnEvent.emit();
view.startTurnEvent.emit();
}
- assertEquals(view.playerPanel.turnMode, TurnMode.NORMAL_TURN);
+ assertEquals( TurnMode.NORMAL_TURN, view.playerPanel.turnMode);
}
}