Author: lzoubek(a)redhat.com
Date: 2010-12-03 07:48:25 -0500 (Fri, 03 Dec 2010)
New Revision: 27142
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
Log:
esb tests: fixed project example test
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 2010-12-03
12:33:40 UTC (rev 27141)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2010-12-03
12:48:25 UTC (rev 27142)
@@ -13,8 +13,10 @@
SWTBotTree tree = projectExplorer.show().bot().tree();
SWTBotTreeItem proj = tree.select(project).getTreeItem(project);
boolean fixed=false;
+ boolean found=false;
for (SWTBotTreeItem item : proj.getItems()) {
if (item.getText().startsWith(lib)) {
+ found = true;
ContextMenuHelper.prepareTreeItemForContextMenu(tree, item);
new SWTBotMenu(ContextMenuHelper.getContextMenu(tree, IDELabel.Menu.PROPERTIES,
false)).click();
SWTBotShell shell = bot.activeShell();
@@ -24,7 +26,8 @@
break;
}
}
- if (!fixed) {
+ if (!fixed && found) {
+ log.error("Libray starting with '"+lib+"' in project
'"+project+"' was not fixed.");
bot.sleep(Long.MAX_VALUE);
}
}
Show replies by date