[jbosstools-commits] JBoss Tools SVN: r43920 - trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 21 05:58:02 EDT 2012


Author: psrna
Date: 2012-09-21 05:58:02 -0400 (Fri, 21 Sep 2012)
New Revision: 43920

Modified:
   trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallTest.java
Log:
* fix: if InvalidFailureException is catched the test should fail. Added fail(message.toString());


Modified: trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallTest.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallTest.java	2012-09-21 09:37:03 UTC (rev 43919)
+++ trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallTest.java	2012-09-21 09:58:02 UTC (rev 43920)
@@ -22,6 +22,7 @@
 import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
 import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
 import org.eclipse.swtbot.swt.finder.waits.ICondition;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
 import org.junit.Test;
@@ -115,6 +116,8 @@
 			message.append("Could not install from: " + site);
 			message.append("\n");
 			message.append(ex.getMessage());
+			
+			fail(message.toString());
 		}
 		
 	}
@@ -178,6 +181,7 @@
 				restartShellBot.button("No").click();
 			}
 		} catch (Exception ex) {
+			
 			String installDesc = bot.text().getText();
 			if (installDesc == null || installDesc.isEmpty()) {
 				throw new RuntimeException("Internal error", ex);



More information about the jbosstools-commits mailing list