Author: jjankovi
Date: 2012-03-27 09:28:21 -0400 (Tue, 27 Mar 2012)
New Revision: 39843
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/utils/ProjectHelper.java
Log:
method for adding project into EAR added
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/utils/ProjectHelper.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/utils/ProjectHelper.java 2012-03-27
04:58:05 UTC (rev 39842)
+++
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/utils/ProjectHelper.java 2012-03-27
13:28:21 UTC (rev 39843)
@@ -76,6 +76,20 @@
util.waitForNonIgnoredJobs();
projectExplorer.selectProject(name);
}
+
+ /**
+ * Method creates new Dynamic Web Project with entered name for
+ * ear project
+ * @param name
+ */
+ public void createProjectForEAR(String name, String earProject) {
+ new NewFileWizardAction().run()
+ .selectTemplate("Web", "Dynamic Web Project").next();
+ new DynamicWebProjectWizard().setProjectName(name).
+ addProjectToEar(earProject).finish();
+ util.waitForNonIgnoredJobs();
+ projectExplorer.selectProject(name);
+ }
/**
* Method creates new EAR Project with entered name