Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-08-13 04:15:50 -0400
committerMichael Keppler2019-08-13 04:15:50 -0400
commit227524b534e62af73b612c284f6066c022c2f68c (patch)
tree12ed91933ac5cd6c8744b468296e2333f497b4a1
parentedf184454666339c93b676d62077d212cf72e78f (diff)
downloadegit-227524b534e62af73b612c284f6066c022c2f68c.tar.gz
egit-227524b534e62af73b612c284f6066c022c2f68c.tar.xz
egit-227524b534e62af73b612c284f6066c022c2f68c.zip
Stabilize StageUnstageActionTest
We had WidgetNotFoundExceptions in the last 2 executions of our main build job. Re-calculate the tree widget after unsharing a project to eventually get rid of the exception. Local testing did not expose the exception on my Windows system. org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: The widget {null} was disposed. at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:119) at org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.<init>(SWTBotTreeItem.java:76) at org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.<init>(SWTBotTreeItem.java:67) at org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.notifySelect(SWTBotTree.java:448) at org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.notifySelect(SWTBotTree.java:444) at org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.select(SWTBotTree.java:275) at org.eclipse.egit.ui.test.team.actions.StageUnstageActionTest.testActionsInitiallyNotPresent(StageUnstageActionTest.java:99) Change-Id: Iefbeb57f1adb62426db457c3f0a918529fe648a7 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/StageUnstageActionTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/StageUnstageActionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/StageUnstageActionTest.java
index a56f4493c..a0551d62d 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/StageUnstageActionTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/StageUnstageActionTest.java
@@ -96,6 +96,7 @@ public class StageUnstageActionTest extends LocalRepositoryTestCase {
"Team", removeFromIndexLabel));
// And again, with only the two shared projects
unshared.delete(true, null);
+ projectExplorerTree = TestUtil.getExplorerTree();
projectExplorerTree.select(projectExplorerTree.getAllItems());
assertFalse("Add To Index should not be present",
ContextMenuHelper.contextMenuItemExists(projectExplorerTree,

Back to the top