Emit stoneClick before setClick in tests
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@186 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
90aeaab900
commit
4dc17e043f
1 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Reference in a new issue