[exo-jcr-commits] exo-jcr SVN: r1643 - jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Feb 3 05:34:00 EST 2010
Author: dkatayev
Date: 2010-02-03 05:34:00 -0500 (Wed, 03 Feb 2010)
New Revision: 1643
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/BaseClusteringFunctionalTest.java
Log:
BaseClusteringFunctionalTest updated to use 1 connection per request
Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/BaseClusteringFunctionalTest.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/BaseClusteringFunctionalTest.java 2010-02-03 10:24:32 UTC (rev 1642)
+++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/BaseClusteringFunctionalTest.java 2010-02-03 10:34:00 UTC (rev 1643)
@@ -41,20 +41,14 @@
* @author <a href="mailto:alex.reshetnyak at exoplatform.com.ua">Alex Reshetnyak</a>
* @version $Id$
*/
-public abstract class BaseClusteringFunctionalTest
- extends TestCase
+public abstract class BaseClusteringFunctionalTest extends TestCase
{
private String realm = "eXo REST services";
private String workspacePath = "/rest/jcr/repository/production/";
- private JCRWebdavConnection[] connections = new JCRWebdavConnection[]
- {new JCRWebdavConnection("localhost", 8080, "root", "exo", realm, workspacePath)/*,
- new JCRWebdavConnection("localhost", 8082, "root", "exo", realm, workspacePath),
- new JCRWebdavConnection("localhost", 8083, "root", "exo", realm, workspacePath),
- new JCRWebdavConnection("localhost", 8084, "root", "exo", realm, workspacePath)*/
- };
+ private JCRWebdavConnection[] connections;
protected String nodeName;
@@ -65,6 +59,15 @@
{
super.setUp();
+ JCRWebdavConnection[] connections =
+ new JCRWebdavConnection[]{new JCRWebdavConnection("localhost", 8080, "root", "exo", realm, workspacePath)
+ /**,
+ new JCRWebdavConnection("localhost", 8082, "root", "exo", realm, workspacePath),
+ new JCRWebdavConnection("localhost", 8083, "root", "exo", realm, workspacePath),
+ new JCRWebdavConnection("localhost", 8084, "root", "exo", realm, workspacePath)
+ */
+ };
+
nodeName = generateUniqueName("removed_node_over_webdav");
}
@@ -91,7 +94,7 @@
protected JCRWebdavConnection getConnection()
{
- return connections[(int) (Math.random() * 100) % connections.length];
+ return connections[(int)(Math.random() * 100) % connections.length];
}
/**
@@ -122,7 +125,7 @@
}
protected String getPropertyValue(byte[] responseData, String propertyName) throws XMLStreamException,
- FactoryConfigurationError, IOException
+ FactoryConfigurationError, IOException
{
InputStream input = new ByteArrayInputStream(responseData);
More information about the exo-jcr-commits
mailing list