Author: lzoubek(a)redhat.com
Date: 2010-09-17 07:29:58 -0400 (Fri, 17 Sep 2010)
New Revision: 24978
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java
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/NewProjectUsingBundledInEAP.java
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListener.java
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListenerFactory.java
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java
Log:
esb bot tests: cover adding camel provider & listener
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java 2010-09-17
11:26:49 UTC (rev 24977)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java 2010-09-17
11:29:58 UTC (rev 24978)
@@ -20,7 +20,7 @@
bot.text(1).setText(TestConfigurator.currentConfig.getServer().runtimeHome);
assertTrue("Version was not automaticly selected by setting ESB home
dir",bot.comboBox().selection().equals(configuredState.getServer().bundledESBVersion));
String name = bot.text(0).getText();
- assertFalse("Runtime name was not automaticly set by setting ESB home
dir",name.equals(""));
+// assertFalse("Runtime name was not automaticly set by setting ESB home
dir",name.equals(""));
assertTrue("Finish button must be enabled when valid home dir is
defined",bot.button(IDELabel.Button.FINISH).isEnabled());
open.finish(bot.activeShell().bot());
open.finish(wiz,IDELabel.Button.OK);
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 2010-09-17
11:26:49 UTC (rev 24977)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java 2010-09-17
11:29:58 UTC (rev 24978)
@@ -73,7 +73,7 @@
@AfterClass
public static void waitAMinute() {
- bot.sleep(Long.MAX_VALUE);
+ //bot.sleep(Long.MAX_VALUE);
}
@Test
@@ -132,7 +132,7 @@
action.create(getEditor(), actionPath);
listenerList.remove(action.getMenuLabel());
} catch (Exception e) {
- // TODO Auto-generated catch block
+ fail("Exception "+e.getMessage());
e.printStackTrace();
}
}
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/NewProjectUsingBundledInEAP.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/NewProjectUsingBundledInEAP.java 2010-09-17
11:26:49 UTC (rev 24977)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/NewProjectUsingBundledInEAP.java 2010-09-17
11:29:58 UTC (rev 24978)
@@ -4,6 +4,7 @@
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
import org.jboss.tools.ui.bot.ext.gen.ActionItem;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.NewObject.ESBESBProject;
@@ -35,8 +36,9 @@
wiz.button(IDELabel.Button.NEXT).click();
wiz.button(IDELabel.Button.NEXT).click();
try {
- String text = wiz.text(2).getText();
+ String text = wiz.text(1).getText();
assertTrue("New ESB project wizard did not warn, when using runtime without
ESB",text.contains("does not contain a valid ESB"));
+ log.info(text);
} catch (IndexOutOfBoundsException ex) {
assertTrue("New ESB project wizard did not warn, when using runtime without
ESB",false);
}
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListener.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListener.java 2010-09-17
11:26:49 UTC (rev 24977)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListener.java 2010-09-17
11:29:58 UTC (rev 24978)
@@ -33,7 +33,7 @@
public void edit(SWTBotEditor editor, String... path) {
editor.show();
SWTEclipseExt.selectTreeLocation(editor.bot(), path);
- doEditing(editor, null);
+ doEditing(editor, (String[])null);
editor.bot().sleep(5000);
editor.save();
}
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListenerFactory.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListenerFactory.java 2010-09-17
11:26:49 UTC (rev 24977)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBListenerFactory.java 2010-09-17
11:29:58 UTC (rev 24978)
@@ -66,4 +66,7 @@
}
};
}
+ public static ESBListener listenerCamel() {
+ return new ESBListener("Camel Gateway", "camel-gateway");
+ }
}
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java 2010-09-17
11:26:49 UTC (rev 24977)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java 2010-09-17
11:29:58 UTC (rev 24978)
@@ -95,4 +95,7 @@
public static ESBProvider providerSQL() {
return new ESBProvider("SQL Provider", "sql-provider");
}
+ public static ESBProvider providerCamel() {
+ return new ESBProvider("Camel Provider", "camel-provider");
+ }
}