From 4dc17e043f927319072789e3d21c7b2c0c73a99b Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 9 May 2011 18:36:01 +0200 Subject: Emit stoneClick before setClick in tests git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@186 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/control/TurnControlTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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)); } -- cgit v1.2.3