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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Aug 9 22:14:26 EDT 2012


Author: ldimaggio
Date: 2012-08-09 22:14:26 -0400 (Thu, 09 Aug 2012)
New Revision: 42963

Modified:
   trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
Log:
Updated tests to function cleanly on Juno.




Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java	2012-08-10 02:13:02 UTC (rev 42962)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java	2012-08-10 02:14:26 UTC (rev 42963)
@@ -63,11 +63,11 @@
 	public static void setupProject() {
 		SWTBot wiz = open.newObject(ActionItem.NewObject.ESBESBProject.LABEL);
 		wiz.textWithLabel(ESBESBProject.TEXT_PROJECT_NAME).setText(projectName);
-		wiz.sleep(30000l);
+		wiz.sleep(TIME_5S);
 		wiz.button(IDELabel.Button.NEXT).click();
-		wiz.sleep(30000l);
+		wiz.sleep(TIME_5S);
 		wiz.button(IDELabel.Button.NEXT).click();
-		wiz.sleep(30000l);
+		wiz.sleep(TIME_5S);
 		open.finish(wiz);		
 	}
 
@@ -81,14 +81,15 @@
 		packageExplorer.show().bot().tree().select(projectName);
 		SWTBot wiz = open.newObject(ESBESBFile.LABEL);
 		wiz.textWithLabel(ESBESBFile.TEXT_NAME).setText("another-esb-config");
-		bot.sleep(30000l);
+		bot.sleep(TIME_5S);
 		open.finish(wiz);
+		bot.sleep(TIME_5S);
 		assertTrue(bot.editorByTitle("another-esb-config.xml") != null);
 		assertTrue("ESB Editor opened problems",
 				problems.getErrorsNode(bot) == null);
 	}
 
-//	@Test
+	@Test
 	public void providers() {
 		List<String> providerList = getAvailableProviders();
 		String[] actionPath = new String[] { configFileFull, node_providers };
@@ -115,6 +116,8 @@
 						+ Arrays.toString(providerList.toArray()),
 				providerList.isEmpty());
 		collapseTree();
+		/* ldimaggi - August 2012 - added to make test run on Eclipse Juno */
+		getEditor().save();
 	}
 
 	@Test
@@ -131,6 +134,10 @@
 					log.info("Invoke " + m.getName());
 					ESBListener action = (ESBListener) m.invoke(null, new Object[]{});
 					action.setService(service);
+
+					/* ldimaggi - August 2012 - added to make test run on Eclipse Juno */
+					getEditor().save();
+					
 					action.create(getEditor(), actionPath);
 					listenerList.remove(action.getMenuLabel());
 				} catch (Exception e) {
@@ -144,9 +151,13 @@
 						+ Arrays.toString(listenerList.toArray()),
 				listenerList.isEmpty());
 		collapseTree();
+		bot.sleep(TIME_5S);
+
+		/* ldimaggi - August 2012 - added to make test run on Eclipse Juno */
+		getEditor().save();
 	}
 
-//	@Test
+	@Test
 	public void actions() {
 		String service = "bbb";
 		addService(service);
@@ -189,6 +200,7 @@
 	}
 
 	private SWTBotEditor getEditor() {
+		bot.sleep(TIME_5S);
 		return bot.editorByTitle(configFileFull);
 	}
 
@@ -360,8 +372,4 @@
 
 	}
 
-
-
-
-
 }



More information about the jbosstools-commits mailing list