Renamed sendMessage() to sendRequest()

This commit is contained in:
Arjen Poutsma
2010-11-05 10:22:32 +00:00
parent 0dcfb9e33a
commit 5c3de45e18
4 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ import static org.springframework.ws.test.support.AssertionErrors.fail;
* <ol>
* <li>Create a {@code MockWebServiceClient} instance by using {@link #createClient(ApplicationContext)} or
* {@link #createClient(WebServiceMessageReceiver, WebServiceMessageFactory)}</li>
* <li>Send request messages by calling {@link #sendMessage(RequestCreator)}, possibly by using the default
* <li>Send request messages by calling {@link #sendRequest(RequestCreator)}, possibly by using the default
* {@link RequestCreator} implementations provided in {@link RequestCreators} (which can be statically imported).</li>
* <li>Set up response expectations by calling {@link ResponseActions#andExpect(ResponseMatcher) andExpect(ResponseMatcher)},
* possibly by using the default {@link ResponseMatcher} implementations provided in {@link ResponseMatchers}
@@ -170,7 +170,7 @@ public class MockWebServiceClient {
* @return the response actions
* @see RequestCreators
*/
public ResponseActions sendMessage(RequestCreator requestCreator) {
public ResponseActions sendRequest(RequestCreator requestCreator) {
Assert.notNull(requestCreator, "'requestCreator' must not be null");
try {
WebServiceMessage request = requestCreator.createRequest(messageFactory);

View File

@@ -29,7 +29,7 @@ import org.springframework.xml.transform.ResourceSource;
/**
* Factory methods for {@link RequestCreator} classes. Typically used to provide input for {@link
* MockWebServiceClient#sendMessage(RequestCreator)}.
* MockWebServiceClient#sendRequest(RequestCreator)}.
*
* @author Arjen Poutsma
* @since 2.0

View File

@@ -18,7 +18,7 @@ package org.springframework.ws.test.server;
/**
* Allows for setting up expectation about response messages. Implementations of this interface are returned by
* {@link MockWebServiceClient#sendMessage(RequestCreator)}.
* {@link MockWebServiceClient#sendRequest(RequestCreator)}.
*
* @author Arjen Poutsma
* @since 2.0

View File

@@ -57,7 +57,7 @@ public class ServerIntegrationTest {
"<customerCountResponse xmlns='http://springframework.org/spring-ws'>" +
"<customerCount>42</customerCount>" + "</customerCountResponse>");
mockClient.sendMessage(withPayload(requestPayload)).andExpect(payload(expectedResponsePayload));
mockClient.sendRequest(withPayload(requestPayload)).andExpect(payload(expectedResponsePayload));
}