summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub')
-rw-r--r--test/jrummikub/control/TurnControlTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/jrummikub/control/TurnControlTest.java b/test/jrummikub/control/TurnControlTest.java
index 8ba7bc4..288214e 100644
--- a/test/jrummikub/control/TurnControlTest.java
+++ b/test/jrummikub/control/TurnControlTest.java
@@ -19,7 +19,8 @@ import static org.junit.Assert.*;
public class TurnControlTest {
class MockTimer implements ITurnTimer {
- boolean timerRunning;
+ public boolean timerRunning;
+ public Event timeRunOutEvent = new Event();
@Override
public void startTimer() {
@@ -33,7 +34,7 @@ public class TurnControlTest {
@Override
public IEvent getTimeRunOutEvent() {
- return null;
+ return timeRunOutEvent;
}
}
@@ -82,7 +83,7 @@ public class TurnControlTest {
}
});
- mockView.playerPanel.endTurnEvent.emit();
+ mockTimer.timeRunOutEvent.emit();
assertTrue(eventFired);
assertFalse(mockTimer.timerRunning);