Author: ldimaggio
Date: 2013-02-07 22:53:09 -0500 (Thu, 07 Feb 2013)
New Revision: 44671
Modified:
branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
Log:
Over-ride method to ensure that tests fail when examples are not available, removed method
that checked for library names as the name strings are no longer visible
Modified:
branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java
===================================================================
---
branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2013-02-07
15:00:50 UTC (rev 44670)
+++
branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java 2013-02-08
03:53:09 UTC (rev 44671)
@@ -15,6 +15,10 @@
public class ESBExampleTest extends ExampleTest{
+ /* Over-ride method failOnMissingExample from parent class for:
https://issues.jboss.org/browse/JBIDE-13439 */
+ protected boolean failOnMissingExample(){
+ return true;
+ }
/**
* returns example project name (as it is imported to workspace)
@@ -44,10 +48,13 @@
*/
@Override
protected void postImport() {
- fixExampleLibs();
- if (getExampleClientProjectName()!=null) {
- fixExampleClientLibs();
- }
+
+ /*
https://issues.jboss.org/browse/JBIDE-13475 - the strings in the UI have changed -
this method seems to be irrelevant */
+ /* Will either remove or rewrite ultimately */
+ // fixExampleLibs();
+ // if (getExampleClientProjectName()!=null) {
+ // fixExampleClientLibs();
+ // }
/* Close the open, but empty "Quick Fix" dialog if it is open.
* Temporary fix to workaround
https://issues.jboss.org/browse/JBIDE-11781 */
@@ -176,7 +183,7 @@
}
protected void fixExampleLibs() {
- fixLibrary(getExampleProjectName(),"Server Library");
+ fixLibrary(getExampleProjectName(), "Server Library");
fixLibrary(getExampleProjectName(),"JBoss ESB Runtime");
util.waitForNonIgnoredJobs();
}
@@ -198,6 +205,9 @@
boolean fixed=false;
boolean found=false;
for (SWTBotTreeItem item : proj.getItems()) {
+
+ log.info("lib, proj=" + lib + " " + item.getText());
+
if (item.getText().startsWith(lib)) {
found = true;
ContextMenuHelper.prepareTreeItemForContextMenu(tree, item);