[jbosstools-commits] JBoss Tools SVN: r42948 - trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Aug 9 07:16:18 EDT 2012


Author: jpeterka
Date: 2012-08-09 07:16:18 -0400 (Thu, 09 Aug 2012)
New Revision: 42948

Modified:
   trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java
Log:
Attempt to fix freemarker bot test fail on windows jenkins slave

Modified: trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java
===================================================================
--- trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java	2012-08-09 10:25:52 UTC (rev 42947)
+++ trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/src/org/jboss/tools/freemarker/ui/bot/test/FreeMarkerTest.java	2012-08-09 11:16:18 UTC (rev 42948)
@@ -46,8 +46,11 @@
 		eclipse.closeAllEditors();
 
 		util.waitForAll();
-		bot.shells()[0].activate();
-		bot.shells()[0].setFocus();
+		String title = "Resource - Eclipse Platform";
+		bot.waitForShell(title);
+		SWTBotShell shell = bot.shell(title);
+		shell.activate();
+		shell.setFocus();
 		open.perspective(ActionItem.Perspective.JAVA.LABEL);
 		
 		SubversiveHelper.disableSVNDecoration();



More information about the jbosstools-commits mailing list