Author: darran.lofthouse(a)jboss.com
Date: 2008-08-13 11:16:36 -0400 (Wed, 13 Aug 2008)
New Revision: 8099
Modified:
stack/native/branches/dlofthouse/JBWS-1862/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java
Log:
Testing of internal API was dependent on old defaults.
Modified:
stack/native/branches/dlofthouse/JBWS-1862/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java
===================================================================
---
stack/native/branches/dlofthouse/JBWS-1862/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java 2008-08-13
15:02:47 UTC (rev 8098)
+++
stack/native/branches/dlofthouse/JBWS-1862/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java 2008-08-13
15:16:36 UTC (rev 8099)
@@ -158,11 +158,13 @@
call.setOperationName(new QName("http://org.jboss.ws/2004", opName));
call.addParameter("String_1", Constants.TYPE_LITERAL_STRING,
String.class, ParameterMode.IN);
- call.setReturnType(Constants.TYPE_LITERAL_STRING, String.class);
opMetaData = call.getOperationMetaData();
opMetaData.getEndpointMetaData().setServiceEndpointInterfaceName(SOAPBindingTestService.class.getName());
+ ParameterMetaData returnParam = new ParameterMetaData(opMetaData, new
QName(Constants.DEFAULT_RPC_RETURN_NAME), Constants.TYPE_LITERAL_STRING,
"java.lang.String");
+ opMetaData.setReturnParameter(returnParam);
+
// Associate a message context with the current thread
SOAPMessageContextJAXRPC messageContext = new SOAPMessageContextJAXRPC();
MessageContextAssociation.pushMessageContext(messageContext);
@@ -355,7 +357,7 @@
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
msgContext.setSOAPMessage(resMessage);
- EndpointInvocation epInv = new EndpointInvocation(opMetaData);
+ EndpointInvocation epInv = new EndpointInvocation(opMetaData);
binding.unbindResponseMessage(opMetaData, resMessage, epInv, null);
assertEquals("Hello World!", epInv.getReturnValue());
}