Author: jjankovi
Date: 2012-02-22 08:30:10 -0500 (Wed, 22 Feb 2012)
New Revision: 38977
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java
Log:
Small fix for RESTfulTestBase
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java 2012-02-22
13:27:34 UTC (rev 38976)
+++
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java 2012-02-22
13:30:10 UTC (rev 38977)
@@ -64,16 +64,17 @@
@Override
public void setup() {
if (!projectExists(getWsProjectName())) {
- projectHelper.createProject(getWsProjectName());
- }
- if (!isRestSupportEnabled(getWsProjectName())) {
- // workaround for EAP 5.1
- if (configuredState.getServer().type.equals("EAP") &&
- configuredState.getServer().version.equals("5.1")) {
- addRestEasyLibs(getWsProjectName());
+ projectHelper.createProject(getWsProjectName());
+ if (!isRestSupportEnabled(getWsProjectName())) {
+ // workaround for EAP 5.1
+ if (configuredState.getServer().type.equals("EAP") &&
+ configuredState.getServer().version.equals("5.1")) {
+ addRestEasyLibs(getWsProjectName());
+ }
+ addRestSupport(getWsProjectName());
}
- addRestSupport(getWsProjectName());
}
+
if (!projectExplorer.isFilePresent(getWsProjectName(), "Java Resources",
"src", getWsPackage(), getWsName() + ".java")) {
projectHelper.createClass(getWsProjectName(), getWsPackage(), getWsName());