Author: jjankovi
Date: 2012-08-21 06:07:43 -0400 (Tue, 21 Aug 2012)
New Revision: 43124
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java
Log:
BeansEditorTest fails if project is not located in workspace
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java 2012-08-21
09:59:44 UTC (rev 43123)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java 2012-08-21
10:07:43 UTC (rev 43124)
@@ -22,6 +22,7 @@
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
import org.jboss.tools.cdi.bot.test.CDIConstants;
import org.jboss.tools.cdi.bot.test.CDISmokeBotTests;
@@ -64,6 +65,14 @@
editResourceUtil.copyResource("resources/beans.xml", descPath);
editResourceUtil.copyResource("resources/Foo.jav_",
"src/cdi/Foo.java");
editResourceUtil.copyResource("resources/Bar.jav_",
"src/cdi/Bar.java");
+ /**
+ * project should be located in workspace after previous test
+ */
+ try {
+ projectExplorer.selectProject("CDIWizardTest");
+ } catch (WidgetNotFoundException wnfe) {
+ fail("project should be located in workspace");
+ }
}
@Override