Author: ljelinko
Date: 2012-01-24 07:49:58 -0500 (Tue, 24 Jan 2012)
New Revision: 38083
Added:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/PortletBridgeBean.java
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java
Log:
Added portlet bridge to the available configuration options
Added:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/PortletBridgeBean.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/PortletBridgeBean.java
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/PortletBridgeBean.java 2012-01-24
12:49:58 UTC (rev 38083)
@@ -0,0 +1,32 @@
+package org.jboss.tools.ui.bot.ext.config;
+
+
+/**
+ * Configuration of portlet bridge.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+public class PortletBridgeBean {
+
+ private String location;
+
+ public static PortletBridgeBean fromString(String propValue) throws Exception {
+ if (propValue==null) {
+ return null;
+ }
+
+ PortletBridgeBean bean = new PortletBridgeBean();
+ bean.location = propValue;
+ return bean;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ @Override
+ public String toString() {
+ return "Portlet Bridge runtime: " + location;
+ }
+}
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java 2012-01-24
10:47:26 UTC (rev 38082)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java 2012-01-24
12:49:58 UTC (rev 38083)
@@ -42,6 +42,7 @@
private DBBean db;
private RemoteSystemBean remoteSystem;
private SecureStorage secureStorage;
+ private PortletBridgeBean portletBridge;
public TestConfiguration(String propName, String propFile) throws Exception {
this.propName = propName;
@@ -79,6 +80,8 @@
printConfig(Keys.DB, db);
secureStorage = SecureStorage.fromString(Keys.SS, getProperty(Keys.SS));
printConfig("Secure Storage", secureStorage);
+ portletBridge = PortletBridgeBean.fromString(getProperty(Keys.PORTLET_BRIDGE));
+ printConfig(Keys.PORTLET_BRIDGE, portletBridge);
}
/**
* initializes this configuration - runtimes, downloaded, homes checked
@@ -236,6 +239,10 @@
public DBBean getDB() {
return db;
}
+
+ public PortletBridgeBean getPortletBridge() {
+ return portletBridge;
+ }
public RemoteSystemBean getRemoteSystem() {
return remoteSystem;
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java 2012-01-24
10:47:26 UTC (rev 38082)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java 2012-01-24
12:49:58 UTC (rev 38083)
@@ -49,6 +49,7 @@
public static final String DB = "DB";
public static final String RS = "RS";
public static final String SS = "SS";
+ public static final String PORTLET_BRIDGE = "PORTLET_BRIDGE";
}
/**
* constant property values which are handled in configuration files
Show replies by date