summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/control
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-09 18:36:01 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-09 18:36:01 +0200
commit4dc17e043f927319072789e3d21c7b2c0c73a99b (patch)
tree88bd0eab00bc195f7eea324d104e0e2ab67d630d /test/jrummikub/control
parent90aeaab90050a0f964db567635507bc7fd361db3 (diff)
downloadJRummikub-4dc17e043f927319072789e3d21c7b2c0c73a99b.tar
JRummikub-4dc17e043f927319072789e3d21c7b2c0c73a99b.zip
Emit stoneClick before setClick in tests
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@186 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub/control')
-rw-r--r--test/jrummikub/control/TurnControlTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/jrummikub/control/TurnControlTest.java b/test/jrummikub/control/TurnControlTest.java
index 0335bc7..f195fbc 100644
--- a/test/jrummikub/control/TurnControlTest.java
+++ b/test/jrummikub/control/TurnControlTest.java
@@ -271,6 +271,9 @@ public class TurnControlTest {
mockView.playerPanel.handPanel.stoneClickEvent.emit(firstStone, true);
mockView.playerPanel.handPanel.stoneClickEvent.emit(secondStone, true);
+ mockView.tablePanel.stoneCollectionPanel.stoneClickEvent.emit(firstStone,
+ true);
+
mockView.tablePanel.stoneCollectionPanel.setClickEvent.emit(firstStone,
true);
@@ -333,8 +336,10 @@ public class TurnControlTest {
mockTable.findStoneSet.put(stone1, set1);
mockTable.findStoneSet.put(stone4, set2);
+ mockView.tablePanel.stoneClickEvent.emit(stone1, false);
mockView.tablePanel.setClickEvent.emit(stone1, false);
assertCollection(Arrays.asList(stone1, stone2));
+ mockView.tablePanel.stoneClickEvent.emit(stone4, false);
mockView.tablePanel.setClickEvent.emit(stone4, false);
assertCollection(Arrays.asList(stone3, stone4));
}
@@ -353,8 +358,10 @@ public class TurnControlTest {
mockTable.findStoneSet.put(stone1, set1);
mockTable.findStoneSet.put(stone4, set2);
+ mockView.tablePanel.stoneClickEvent.emit(stone1, true);
mockView.tablePanel.setClickEvent.emit(stone1, true);
assertCollection(Arrays.asList(stone1, stone2));
+ mockView.tablePanel.stoneClickEvent.emit(stone4, true);
mockView.tablePanel.setClickEvent.emit(stone4, true);
assertCollection(Arrays.asList(stone1, stone2, stone3, stone4));
}