Author: asoldano
Date: 2013-10-04 11:28:34 -0400 (Fri, 04 Oct 2013)
New Revision: 17978
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/bus/BusReuseTestCase.java
Log:
[JBWS-3713] Using new feature in BusReuseTestCase to avoid the test being dependent on the
currently set system property
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/bus/BusReuseTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/bus/BusReuseTestCase.java 2013-10-03
17:24:54 UTC (rev 17977)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/bus/BusReuseTestCase.java 2013-10-04
15:28:34 UTC (rev 17978)
@@ -36,6 +36,7 @@
import org.apache.cxf.Bus;
import org.apache.cxf.BusFactory;
import org.jboss.wsf.stack.cxf.client.UseNewBusFeature;
+import org.jboss.wsf.stack.cxf.client.UseThreadBusFeature;
import org.jboss.wsf.test.JBossWSCXFTestSetup;
import org.jboss.wsf.test.JBossWSTest;
@@ -71,7 +72,7 @@
Bus bus = BusFactory.newInstance().createBus();
try {
BusFactory.setThreadDefaultBus(bus);
- Endpoint port = getPort(WSDL_ADDRESS, bus); //invalid
+ Endpoint port = getPort(WSDL_ADDRESS, bus, new UseThreadBusFeature());
//invalid
try {
performInvocation(port);
fail("Failure expected, as the wsdl soap:address is not valid!");
@@ -79,7 +80,7 @@
assertTrue(wse.getCause().getMessage().contains("InvalidEndpoint"));
}
- port = getPort(WSDL_ADDRESS, bus); //valid
+ port = getPort(WSDL_ADDRESS, bus, new UseThreadBusFeature()); //valid
try {
performInvocation(port);
fail("Failure expected, as the WSDLManager for the bus will return the
invalid wsdl");
@@ -87,7 +88,7 @@
assertTrue(wse.getCause().getMessage().contains("InvalidEndpoint"));
}
- port = getPort(WSDL_ADDRESS, bus); //invalid
+ port = getPort(WSDL_ADDRESS, bus, new UseThreadBusFeature()); //invalid
port = getPort(WSDL_ADDRESS, bus, new UseNewBusFeature()); //valid
//the port should now actually be built against the valid wsdl
@@ -95,7 +96,7 @@
//so the invocation is expected to succeed
performInvocation(port);
- port = getPort(WSDL_ADDRESS, bus); //invalid
+ port = getPort(WSDL_ADDRESS, bus, new UseThreadBusFeature()); //invalid
port = getPort(WSDL_ADDRESS, bus, new UseNewBusFeature(false)); //valid
try {
Show replies by date