You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bi...@apache.org on 2007/10/21 00:03:47 UTC
svn commit: r586812 - in
/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty:
EngineLifecycleTest.java server-lifecycle-beans.xml
Author: bimargulies
Date: Sat Oct 20 15:03:47 2007
New Revision: 586812
URL: http://svn.apache.org/viewvc?rev=586812&view=rev
Log:
Make sure we actually touch the service that has reuseaddr turned on.
Modified:
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml
Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java?rev=586812&r1=586811&r2=586812&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java Sat Oct 20 15:03:47 2007
@@ -86,6 +86,11 @@
DummyInterface client = (DummyInterface) applicationContext.getBean("dummy-client");
assertEquals("We should get out put from this client", "hello world", client.echo("hello world"));
}
+
+ private void invokeService8801() {
+ DummyInterface client = (DummyInterface) applicationContext.getBean("dummy-client-8801");
+ assertEquals("We should get out put from this client", "hello world", client.echo("hello world"));
+ }
private HttpURLConnection getHttpConnection(String target) throws Exception {
URL url = new URL(target);
@@ -187,13 +192,15 @@
setReuseAddrForServer(8801);
getTestHtml();
- invokeService();
+ invokeService();
+ invokeService8801();
shutdownService();
setUpBus(true);
setReuseAddrForServer(8801);
invokeService();
+ invokeService8801();
getTestHtml();
shutdownService();
Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml?rev=586812&r1=586811&r2=586812&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml Sat Oct 20 15:03:47 2007
@@ -45,7 +45,9 @@
<property name="dataBinding" ref="aegisBean" />
</bean>
- <jaxws:endpoint id="dummy-service-endpoint" implementor="org.apache.cxf.systest.http_jetty.Dummy" address="http://localhost:8808/Dummy">
+ <jaxws:endpoint id="dummy-service-endpoint"
+ implementor="org.apache.cxf.systest.http_jetty.Dummy"
+ address="http://localhost:8808/Dummy">
<jaxws:serviceFactory>
<ref bean='jaxws-and-aegis-service-factory' />
</jaxws:serviceFactory>
@@ -64,6 +66,13 @@
<bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="org.apache.cxf.systest.http_jetty.DummyInterface" />
<property name="address" value="http://localhost:8808/Dummy" />
+ </bean>
+
+<bean id="dummy-client-8801" class="org.apache.cxf.systest.http_jetty.DummyInterface" factory-bean="clientFactory-8801" factory-method="create" />
+
+ <bean id="clientFactory-8801" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
+ <property name="serviceClass" value="org.apache.cxf.systest.http_jetty.DummyInterface" />
+ <property name="address" value="http://localhost:8801/Dummy" />
</bean>
</beans>