Author: alessio.soldano(a)jboss.com
Date: 2009-07-23 12:21:31 -0400 (Thu, 23 Jul 2009)
New Revision: 10376
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java
Log:
Trying fix on one-way testcase (intermittent failure in with CXF stack) at the current
test impl goes a bit beyond what it's supposed to test
(invokeOneWay is supposed to be non-blocking subject to the capabilities of the underlying
protocol)
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java 2009-07-23
15:54:37 UTC (rev 10375)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java 2009-07-23
16:21:31 UTC (rev 10376)
@@ -61,10 +61,13 @@
QName portName = new QName(targetNS, "PingEndpointPort");
Service service = Service.create(wsdlURL, serviceName);
Dispatch dispatch = service.createDispatch(portName, Source.class, Mode.PAYLOAD);
-
+
String payload = "<ns1:ping
xmlns:ns1='http://oneway.samples.jaxws.ws.test.jboss.org/'/>&q...;
dispatch.invokeOneWay(new StreamSource(new StringReader(payload)));
+ //sleep 3 sec as invokeOneWay is supposed to be non-blocking subject to the
capabilities of the underlying protocol
+ Thread.sleep(3000);
+
payload = "<ns1:feedback
xmlns:ns1='http://oneway.samples.jaxws.ws.test.jboss.org/'/>&q...;
Source retObj = (Source)dispatch.invoke(new StreamSource(new
StringReader(payload)));