Author: ldimaggio
Date: 2012-07-19 11:21:32 -0400 (Thu, 19 Jul 2012)
New Revision: 42651
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
Log:
Added a new check to fixLibrary() for the ESB Runtime - it's unclear how the tests
ever worked before this change was made
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2012-07-19
13:48:24 UTC (rev 42650)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2012-07-19
15:21:32 UTC (rev 42651)
@@ -203,7 +203,14 @@
ContextMenuHelper.prepareTreeItemForContextMenu(tree, item);
new SWTBotMenu(ContextMenuHelper.getContextMenu(tree, IDELabel.Menu.PROPERTIES,
false)).click();
SWTBotShell shell = bot.activeShell();
- shell.bot().table().select(configuredState.getServer().name);
+
+ /* ldimagi - July 2012 - added this as all tests were failing - unclear how this EVER
worked before the change */
+ if (lib.contains("ESB")) {
+ shell.bot().table().select("ESB-" +
configuredState.getServer().bundledESBVersion);
+ }
+ else {
+ shell.bot().table().select(configuredState.getServer().name);
+ }
open.finish(shell.bot(),IDELabel.Button.OK);
fixed=true;
break;