Author: psrna
Date: 2012-10-04 10:41:55 -0400 (Thu, 04 Oct 2012)
New Revision: 44300
Modified:
trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallTest.java
Log:
* Added catch for Timeout Exception to recognize if the installation failed because it
took to long.
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-10-04
14:39:18 UTC (rev 44299)
+++
trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallTest.java 2012-10-04
14:41:55 UTC (rev 44300)
@@ -25,6 +25,7 @@
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.eclipse.swtbot.swt.finder.widgets.TimeoutException;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -180,6 +181,10 @@
// Eclipse 4.2 => "No"
restartShellBot.button("No").click();
}
+ } catch (TimeoutException ex) {
+
+ fail("Installation Timeout Exception: " + ex.getMessage());
+
} catch (Exception ex) {
String installDesc = bot.text().getText();
Show replies by date