Author: veithen Date: Mon Dec 19 21:37:54 2011 New Revision: 1220960 URL: http://svn.apache.org/viewvc?rev=1220960&view=rev Log: Allow Sandesha2 builds to run concurrently.
Modified: axis/axis2/java/sandesha/trunk/modules/tests/pom.xml axis/axis2/java/sandesha/trunk/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_axis2.xml axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_mtom_axis2.xml axis/axis2/java/sandesha/trunk/pom.xml Modified: axis/axis2/java/sandesha/trunk/modules/tests/pom.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/tests/pom.xml?rev=1220960&r1=1220959&r2=1220960&view=diff ============================================================================== --- axis/axis2/java/sandesha/trunk/modules/tests/pom.xml (original) +++ axis/axis2/java/sandesha/trunk/modules/tests/pom.xml Mon Dec 19 21:37:54 2011 @@ -174,6 +174,10 @@ <artifactId>axis2-transport-local</artifactId> </dependency> <dependency> + <groupId>org.apache.axis2</groupId> + <artifactId>axis2-testutils</artifactId> + </dependency> + <dependency> <groupId>org.apache.sandesha2</groupId> <artifactId>sandesha2-core</artifactId> <version>${project.version}</version> Modified: axis/axis2/java/sandesha/trunk/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java?rev=1220960&r1=1220959&r2=1220960&view=diff ============================================================================== --- axis/axis2/java/sandesha/trunk/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java (original) +++ axis/axis2/java/sandesha/trunk/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java Mon Dec 19 21:37:54 2011 @@ -42,6 +42,7 @@ import org.apache.axis2.description.Axis import org.apache.axis2.description.AxisOperationFactory; import org.apache.axis2.description.AxisService; import org.apache.axis2.engine.MessageReceiver; +import org.apache.axis2.testutils.PortAllocator; import org.apache.axis2.transport.http.SimpleHTTPServer; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -51,7 +52,7 @@ public class SandeshaTestCase extends Te String resourceDir = ""; //"test-resources"; Properties properties = null; final String PROPERTY_FILE_NAME = "sandesha2-test.properties"; - public final int DEFAULT_SERVER_TEST_PORT = 8060; + public final int DEFAULT_SERVER_TEST_PORT = PortAllocator.allocatePort(); public ConfigurationContext serverConfigurationContext = null; private final String RMServiceName = "RMSampleService"; private Log log = LogFactory.getLog(getClass()); Modified: axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_axis2.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_axis2.xml?rev=1220960&r1=1220959&r2=1220960&view=diff ============================================================================== --- axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_axis2.xml (original) +++ axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_axis2.xml Mon Dec 19 21:37:54 2011 @@ -127,7 +127,7 @@ <!-- ================================================= --> <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer"> - <parameter name="port">6060</parameter> + <parameter name="port">0</parameter> <!-- Here is the complete list of supported parameters (see example settings further below): port: the port to listen on (default 6060) hostname: if non-null, url prefix used in reply-to endpoint references (default null) Modified: axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_mtom_axis2.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_mtom_axis2.xml?rev=1220960&r1=1220959&r2=1220960&view=diff ============================================================================== --- axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_mtom_axis2.xml (original) +++ axis/axis2/java/sandesha/trunk/modules/tests/test-resources/client_mtom_axis2.xml Mon Dec 19 21:37:54 2011 @@ -88,7 +88,7 @@ <!-- ================================================= --> <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer"> - <parameter name="port" locked="false">6060</parameter> + <parameter name="port" locked="false">0</parameter> <!--If you want to give your own host address for EPR generation--> <!--uncommet following paramter , and set as you required.--> <!--<parameter name="hostname" locked="false">http://myApp.com/ws</parameter>--> Modified: axis/axis2/java/sandesha/trunk/pom.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/pom.xml?rev=1220960&r1=1220959&r2=1220960&view=diff ============================================================================== --- axis/axis2/java/sandesha/trunk/pom.xml (original) +++ axis/axis2/java/sandesha/trunk/pom.xml Mon Dec 19 21:37:54 2011 @@ -399,6 +399,11 @@ <artifactId>axis2-transport-local</artifactId> <version>${axis2.version}</version> </dependency> + <dependency> + <groupId>org.apache.axis2</groupId> + <artifactId>axis2-testutils</artifactId> + <version>${axis2.version}</version> + </dependency> </dependencies> </dependencyManagement>