Author: jjankovi
Date: 2012-01-11 10:11:22 -0500 (Wed, 11 Jan 2012)
New Revision: 37771
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java
Log:
Added static class for JBoss AS 7.0 and 7.1 runtimes and servers in SWTBotExt ActionItem
class
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java 2012-01-11
15:07:23 UTC (rev 37770)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/requirement/AddServer.java 2012-01-11
15:11:22 UTC (rev 37771)
@@ -4,22 +4,24 @@
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
-import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS7x;
-import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss7xRuntime;
-import org.jboss.tools.ui.bot.ext.gen.IServer;
-import org.jboss.tools.ui.bot.ext.gen.IServerRuntime;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS42;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS50;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS51;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS6x;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS70;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossCommunityJBossAS71;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossEnterpriseMiddlewareJBossEnterpriseApplicationPlatform43;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.Server.JBossEnterpriseMiddlewareJBossEnterpriseApplicationPlatform5x;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss42Runtime;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss50Runtime;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss51Runtime;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss6xRuntime;
+import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss70Runtime;
+import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossCommunityJBoss71Runtime;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossEnterpriseMiddlewareJBossEnterpriseApplicationPlatform43Runtime;
import
org.jboss.tools.ui.bot.ext.gen.ActionItem.ServerRuntime.JBossEnterpriseMiddlewareJBossEnterpriseApplicationPlatform5xRuntime;
+import org.jboss.tools.ui.bot.ext.gen.IServer;
+import org.jboss.tools.ui.bot.ext.gen.IServerRuntime;
/**
* adds server (version and type depends on {@link TestConfigurator#server})
* @author lzoubek
@@ -150,9 +152,12 @@
if (version!=null && version.startsWith("6")) {
return new
ServerInfo(JBossCommunityJBoss6xRuntime.LABEL,JBossCommunityJBossAS6x.LABEL);
}
- if (version!=null && version.startsWith("7")) {
- return new
ServerInfo(JBossCommunityJBoss7xRuntime.LABEL,JBossCommunityJBossAS7x.LABEL);
+ if ("7.0".equals(version)) {
+ return new
ServerInfo(JBossCommunityJBoss70Runtime.LABEL,JBossCommunityJBossAS70.LABEL);
}
+ if ("7.1".equals(version)) {
+ return new
ServerInfo(JBossCommunityJBoss71Runtime.LABEL,JBossCommunityJBossAS71.LABEL);
+ }
}
failParsing();
return null;
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java 2012-01-11
15:07:23 UTC (rev 37770)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java 2012-01-11
15:11:22 UTC (rev 37771)
@@ -1581,12 +1581,12 @@
*/
public static final String TEXT_DIRECTORY = "Directory:";
}
- public static class JBossCommunityJBossAS7x {
+ public static class JBossCommunityJBossAS70 {
/**
- * represents item : JBoss Community->JBoss AS 7.x
+ * represents item : JBoss Community->JBoss AS 7.0
*/
public static final IServer LABEL = new IServer() {
- public String getName() { return "JBoss AS 7.x";}
+ public String getName() { return "JBoss AS 7.0";}
public List<String> getGroupPath() {
List<String> l = new Vector<String>();
l.add("JBoss Community");
@@ -1598,6 +1598,23 @@
*/
public static final String TEXT_DIRECTORY = "Directory:";
}
+ public static class JBossCommunityJBossAS71 {
+ /**
+ * represents item : JBoss Community->JBoss AS 7.1
+ */
+ public static final IServer LABEL = new IServer() {
+ public String getName() { return "JBoss AS 7.1";}
+ public List<String> getGroupPath() {
+ List<String> l = new Vector<String>();
+ l.add("JBoss Community");
+ return l;
+ }
+ };
+ /**
+ * text field labeled 'Directory:'
+ */
+ public static final String TEXT_DIRECTORY = "Directory:";
+ }
public static class ApacheTomcatv32Server {
/**
* represents item : Apache->Tomcat v3.2 Server
@@ -10625,12 +10642,12 @@
*/
public static final String TEXT_DIRECTORY = "Directory:";
}
- public static class JBossCommunityJBoss7xRuntime {
+ public static class JBossCommunityJBoss70Runtime {
/**
- * represents item : JBoss Community->JBoss 7.x Runtime
+ * represents item : JBoss Community->JBoss 7.0 Runtime
*/
public static final IServerRuntime LABEL = new IServerRuntime() {
- public String getName() { return "JBoss 7.x Runtime";}
+ public String getName() { return "JBoss 7.0 Runtime";}
public List<String> getGroupPath() {
List<String> l = new Vector<String>();
l.add("JBoss Community");
@@ -10642,6 +10659,23 @@
*/
public static final String TEXT_DIRECTORY = "Directory:";
}
+ public static class JBossCommunityJBoss71Runtime {
+ /**
+ * represents item : JBoss Community->JBoss 7.1 Runtime
+ */
+ public static final IServerRuntime LABEL = new IServerRuntime() {
+ public String getName() { return "JBoss 7.1 Runtime";}
+ public List<String> getGroupPath() {
+ List<String> l = new Vector<String>();
+ l.add("JBoss Community");
+ return l;
+ }
+ };
+ /**
+ * text field labeled 'Directory:'
+ */
+ public static final String TEXT_DIRECTORY = "Directory:";
+ }
public static class ApacheApacheTomcatv32 {
/**
* represents item : Apache->Apache Tomcat v3.2