[jbosstools-commits] JBoss Tools SVN: r43682 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 14 04:15:05 EDT 2012


Author: ljelinko
Date: 2012-09-14 04:15:04 -0400 (Fri, 14 Sep 2012)
New Revision: 43682

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
Log:
Changed waiting condition for Progress Information dialog

Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java	2012-09-14 08:09:04 UTC (rev 43681)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java	2012-09-14 08:15:04 UTC (rev 43682)
@@ -1,13 +1,13 @@
 package org.jboss.tools.ui.bot.ext;
 
 import static org.eclipse.swtbot.swt.finder.waits.Conditions.shellCloses;
+import static org.eclipse.swtbot.swt.finder.waits.Conditions.shellIsActive;
 
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 import org.eclipse.swtbot.swt.finder.SWTBot;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
 import org.jboss.tools.ui.bot.ext.gen.ActionItem;
 import org.jboss.tools.ui.bot.ext.gen.ActionItem.NewObject.JBossToolsProjectExamples;
 import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -82,9 +82,7 @@
 	private SWTBot existsExample() {
 		SWTBot wiz = open.newObject(JBossToolsProjectExamples.LABEL);
 		// wait for progress shell (downloading & parsing example xml)
-		SWTBotShell shell = bot.shell("Progress Information");
-		shell.activate();
-		bot.waitUntil(shellCloses(shell),Timing.time100S());
+		bot.waitWhile(shellIsActive("Progress Information"), Timing.time100S());
 		try {
 			open.selectTreeNode(wiz,ActionItem.create(getExampleCategory(),getExampleName()));
 			return wiz;



More information about the jbosstools-commits mailing list