Author: mickael_istria
Date: 2012-10-10 03:26:58 -0400 (Wed, 10 Oct 2012)
New Revision: 44397
Modified:
trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallFromCentralTest.java
Log:
Split "menu" chain to have better error feedback on which dereference is the
error
Modified:
trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallFromCentralTest.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallFromCentralTest.java 2012-10-10
07:01:51 UTC (rev 44396)
+++
trunk/tests/plugins/org.jboss.tools.tests.installation/src/org/jboss/tools/tests/installation/InstallFromCentralTest.java 2012-10-10
07:26:58 UTC (rev 44397)
@@ -18,6 +18,7 @@
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.eclipse.swtbot.swt.finder.waits.ICondition;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@@ -42,7 +43,8 @@
@Test
public void testInstall() throws Exception {
- this.bot.menu("Help").menu("JBoss Central").click();
+ SWTBotMenu helpMenu = this.bot.menu("Help");
+ helpMenu.menu("JBoss Central").click();
SWTBotMultiPageEditor centralEditor = (SWTBotMultiPageEditor)
this.bot.multipageEditorByTitle("JBoss Central");
centralEditor.show();
centralEditor.activatePage("Software/Update");
Show replies by date