Author: lzoubek(a)redhat.com
Date: 2011-05-12 06:56:23 -0400 (Thu, 12 May 2011)
New Revision: 31236
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/RequirementBase.java
Log:
swtbot ext: added requirement wrapper catching expceptions
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/RequirementBase.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/RequirementBase.java 2011-05-12
08:47:17 UTC (rev 31235)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/RequirementBase.java 2011-05-12
10:56:23 UTC (rev 31236)
@@ -65,8 +65,17 @@
log.info("Requirement '" + this.getClass().getName() + "'
fulfilled");
}
-
/**
+ * try catch wrapper for {@link #fulfill()} method which only logs possible error
+ */
+ public void fulfillIgnore() {
+ try {
+ fulfill();
+ } catch (Exception e) {
+ log.error(e);
+ }
+ }
+ /**
* must return true if the Requirement is already fulfilled
*
* @return
Show replies by date