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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 24 04:07:02 EDT 2012


Author: rhopp
Date: 2012-05-24 04:07:02 -0400 (Thu, 24 May 2012)
New Revision: 41338

Modified:
   trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
   trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
Log:
Added testing to Deploy to EAP (https://issues.jboss.org/browse/JBQA-6348)

Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java	2012-05-24 07:33:12 UTC (rev 41337)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java	2012-05-24 08:07:02 UTC (rev 41338)
@@ -6,10 +6,10 @@
 
 @RunWith(RequirementAwareSuite.class)
 @SuiteClasses({
-	//BaseFunctionalityTest.class,
-	CreateProjectsWithServerTest.class
+	BaseFunctionalityTest.class,
+	CreateProjectsWithServerTest.class,
 //	CreateProjectsWithoutServerTest.class
-//	DocumentationSectionTest.class
+	DocumentationSectionTest.class
 	//EmptyTestForHudson.class
 	})
 public class CentralAllBotTests {

Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java	2012-05-24 07:33:12 UTC (rev 41337)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java	2012-05-24 08:07:02 UTC (rev 41338)
@@ -27,7 +27,9 @@
 import org.junit.BeforeClass;
 import org.junit.Test;
 
- at Require(server=@org.jboss.tools.ui.bot.ext.config.Annotations.Server(type=ServerType.EAP))
+
+//TODO When testing new build try it with type=ServerType.EAP !!!!
+ at Require(server=@org.jboss.tools.ui.bot.ext.config.Annotations.Server(type=ServerType.JbossAS))
 public class CreateProjectsWithServerTest extends SWTTestExt{
 	
 	@BeforeClass
@@ -180,10 +182,10 @@
 		
 		//check the rest of project examples
 		checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT, false);
-//		checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_PROJECT, true);
-//		checkExample(null, IDELabel.JBossCentralEditor.HTML5_PROJECT, true);
-//		checkExample(null, IDELabel.JBossCentralEditor.RICHFACES_PROJECT, true);
-//		checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, false);
+		checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_PROJECT, true);
+		checkExample(null, IDELabel.JBossCentralEditor.HTML5_PROJECT, true);
+		checkExample(null, IDELabel.JBossCentralEditor.RICHFACES_PROJECT, true);
+		checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, false);
 		
 		/*checkCreateProject(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT);
 		checkCreateProject(IDELabel.JBossCentralEditor.JAVA_EE_PROJECT);
@@ -198,7 +200,7 @@
 		projectExplorer.deleteAllProjects();
 	}
 	
-//	@Test
+	@Test
 	public void projectExamplesSectionTest(){
 		SWTBotTwistie twistieBot = bot.twistieByLabel("JBoss Quickstarts");
 		while (!twistieBot.isExpanded()){
@@ -279,6 +281,7 @@
 	 */
 	
 	private void checkExample(SWTFormsBotExt formsBot, String formText, boolean readme, String readmeFileName){
+		problems.show();
 		if (formsBot==null){
 			bot.hyperlink(formText).click();
 		}else{



More information about the jbosstools-commits mailing list