Skip to content

Commit 5c3de45

Browse files
committed
Renamed sendMessage() to sendRequest()
1 parent 0dcfb9e commit 5c3de45

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

test/src/main/java/org/springframework/ws/test/server/MockWebServiceClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* <ol>
4444
* <li>Create a {@code MockWebServiceClient} instance by using {@link #createClient(ApplicationContext)} or
4545
* {@link #createClient(WebServiceMessageReceiver, WebServiceMessageFactory)}</li>
46-
* <li>Send request messages by calling {@link #sendMessage(RequestCreator)}, possibly by using the default
46+
* <li>Send request messages by calling {@link #sendRequest(RequestCreator)}, possibly by using the default
4747
* {@link RequestCreator} implementations provided in {@link RequestCreators} (which can be statically imported).</li>
4848
* <li>Set up response expectations by calling {@link ResponseActions#andExpect(ResponseMatcher) andExpect(ResponseMatcher)},
4949
* possibly by using the default {@link ResponseMatcher} implementations provided in {@link ResponseMatchers}
@@ -170,7 +170,7 @@ public static MockWebServiceClient createClient(ApplicationContext applicationCo
170170
* @return the response actions
171171
* @see RequestCreators
172172
*/
173-
public ResponseActions sendMessage(RequestCreator requestCreator) {
173+
public ResponseActions sendRequest(RequestCreator requestCreator) {
174174
Assert.notNull(requestCreator, "'requestCreator' must not be null");
175175
try {
176176
WebServiceMessage request = requestCreator.createRequest(messageFactory);

test/src/main/java/org/springframework/ws/test/server/RequestCreators.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Factory methods for {@link RequestCreator} classes. Typically used to provide input for {@link
32-
* MockWebServiceClient#sendMessage(RequestCreator)}.
32+
* MockWebServiceClient#sendRequest(RequestCreator)}.
3333
*
3434
* @author Arjen Poutsma
3535
* @since 2.0

test/src/main/java/org/springframework/ws/test/server/ResponseActions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* Allows for setting up expectation about response messages. Implementations of this interface are returned by
21-
* {@link MockWebServiceClient#sendMessage(RequestCreator)}.
21+
* {@link MockWebServiceClient#sendRequest(RequestCreator)}.
2222
*
2323
* @author Arjen Poutsma
2424
* @since 2.0

test/src/test/java/org/springframework/ws/test/server/integration/ServerIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void basic() throws Exception {
5757
"<customerCountResponse xmlns='http://springframework.org/spring-ws'>" +
5858
"<customerCount>42</customerCount>" + "</customerCountResponse>");
5959

60-
mockClient.sendMessage(withPayload(requestPayload)).andExpect(payload(expectedResponsePayload));
60+
mockClient.sendRequest(withPayload(requestPayload)).andExpect(payload(expectedResponsePayload));
6161
}
6262

6363

0 commit comments

Comments
 (0)