[jboss-cvs] JBossAS SVN: r71787 - projects/test/trunk/src/main/java/org/jboss/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 8 09:17:51 EDT 2008
Author: clebert.suconic at jboss.com
Date: 2008-04-08 09:17:51 -0400 (Tue, 08 Apr 2008)
New Revision: 71787
Modified:
projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredServices.java
projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredSetup.java
Log:
Exposing some of the cluster properties so tests could make use of that
Modified: projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredServices.java
===================================================================
--- projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredServices.java 2008-04-08 10:52:04 UTC (rev 71786)
+++ projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredServices.java 2008-04-08 13:17:51 UTC (rev 71787)
@@ -68,33 +68,33 @@
- int getServerCount()
+ public int getServerCount()
{
return servers.size();
}
- MBeanServerConnection[] getAdaptors() throws Exception
+ public MBeanServerConnection[] getAdaptors() throws Exception
{
// init();
MBeanServerConnection[] tmp = new MBeanServerConnection[adaptors.size()];
adaptors.toArray(tmp);
return tmp;
}
- MBeanServerConnection getAdaptor(int index) throws Exception
+ public MBeanServerConnection getAdaptor(int index) throws Exception
{
// init();
MBeanServerConnection adaptor = (MBeanServerConnection) adaptors.get(index);
return adaptor;
}
- String[] getServers() throws Exception
+ public String[] getServers() throws Exception
{
// init();
String[] tmp = new String[servers.size()];
servers.toArray(tmp);
return tmp;
}
- String getServer(int index) throws Exception
+ public String getServer(int index) throws Exception
{
// init();
String server = (String) servers.get(index);
@@ -105,14 +105,14 @@
* @return
* @throws Exception
*/
- String[] getNamingURLs() throws Exception
+ public String[] getNamingURLs() throws Exception
{
// init();
String[] tmp = new String[namingURLs.size()];
namingURLs.toArray(tmp);
return tmp;
}
- String getNamingURL(int index) throws Exception
+ public String getNamingURL(int index) throws Exception
{
// init();
String server = (String) namingURLs.get(index);
@@ -123,14 +123,14 @@
* @return
* @throws Exception
*/
- String[] getHANamingURLs() throws Exception
+ public String[] getHANamingURLs() throws Exception
{
// init();
String[] tmp = new String[namingURLsHA.size()];
namingURLsHA.toArray(tmp);
return tmp;
}
- String getHANamingURL(int index) throws Exception
+ public String getHANamingURL(int index) throws Exception
{
// init();
String server = (String) namingURLsHA.get(index);
@@ -141,14 +141,14 @@
* @return
* @throws Exception
*/
- String[] getHttpURLs() throws Exception
+ public String[] getHttpURLs() throws Exception
{
// init();
String[] tmp = new String[httpURLs.size()];
httpURLs.toArray(tmp);
return tmp;
}
- String getHttpURL(int index) throws Exception
+ public String getHttpURL(int index) throws Exception
{
// init();
String server = (String) httpURLs.get(index);
Modified: projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredSetup.java
===================================================================
--- projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredSetup.java 2008-04-08 10:52:04 UTC (rev 71786)
+++ projects/test/trunk/src/main/java/org/jboss/test/JBossTestClusteredSetup.java 2008-04-08 13:17:51 UTC (rev 71787)
@@ -59,7 +59,12 @@
this.jarNames = jarNames;
}
+ public JBossTestClusteredSetup(Test test) throws Exception
+ {
+ super(test);
+ }
+
// Public --------------------------------------------------------
// Z implementation ----------------------------------------------
@@ -70,7 +75,7 @@
// Protected -----------------------------------------------------
- protected JBossTestServices createTestServices()
+ public JBossTestServices createTestServices()
{
return new JBossTestClusteredServices(getClass());
}
More information about the jboss-cvs-commits
mailing list