[jbosstools-commits] JBoss Tools SVN: r42919 - branches/jbosstools-3.3.x/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/template.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 8 08:43:07 EDT 2012


Author: ljelinko
Date: 2012-08-08 08:43:07 -0400 (Wed, 08 Aug 2012)
New Revision: 42919

Modified:
   branches/jbosstools-3.3.x/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/template/DeployJSPProjectTemplate.java
Log:
Changed the order of asserts. The first (console0 waits for the deployment message to appear. 

Modified: branches/jbosstools-3.3.x/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/template/DeployJSPProjectTemplate.java
===================================================================
--- branches/jbosstools-3.3.x/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/template/DeployJSPProjectTemplate.java	2012-08-08 12:25:50 UTC (rev 42918)
+++ branches/jbosstools-3.3.x/as/tests/org.jboss.ide.eclipse.as.ui.bot.test/src/org/jboss/ide/eclipse/as/ui/bot/test/template/DeployJSPProjectTemplate.java	2012-08-08 12:43:07 UTC (rev 42919)
@@ -8,7 +8,6 @@
 import org.jboss.ide.eclipse.as.ui.bot.test.wizard.ImportProjectWizard;
 import org.jboss.tools.ui.bot.ext.SWTTestExt;
 import org.jboss.tools.ui.bot.ext.SWTUtilExt;
-import org.jboss.tools.ui.bot.ext.condition.NonSystemJobRunsCondition;
 import org.jboss.tools.ui.bot.ext.condition.TaskDuration;
 import org.jboss.tools.ui.bot.ext.matcher.console.ConsoleOutputMatcher;
 import org.jboss.tools.ui.bot.ext.view.ServersView;
@@ -47,12 +46,12 @@
 		ServersView serversView = new ServersView();
 		serversView.addProjectToServer(PROJECT_NAME, configuredState.getServer().name);
 
-		// web
-		serversView.openWebPage(configuredState.getServer().name, PROJECT_NAME);
-		assertThat("Hello tests!", new PageSourceMatcher());
 		// console
 		assertThat(getConsoleMessage(), new ConsoleOutputMatcher(TaskDuration.NORMAL));
 		assertThat("Exception:", not(new ConsoleOutputMatcher()));
+		// web
+		serversView.openWebPage(configuredState.getServer().name, PROJECT_NAME);
+		assertThat("Hello tests!", new PageSourceMatcher());
 		// view
 		assertTrue("Server contains project", serversView.containsProject(configuredState.getServer().name, PROJECT_NAME));
 		assertEquals("Started", serversView.getServerStatus(configuredState.getServer().name));



More information about the jbosstools-commits mailing list