Class MockWebServiceMessageSender
java.lang.Object
org.springframework.ws.test.client.MockWebServiceMessageSender
- All Implemented Interfaces:
WebServiceMessageSender
Mock implementation of
WebServiceMessageSender. Contains a list of expected
MockSenderConnections, and iterates over those.- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ws.test.client.MockSenderConnectioncreateConnection(URI uri) Create a newWebServiceConnectionto the specified URI.booleanAlways returnstrue.
-
Constructor Details
-
MockWebServiceMessageSender
public MockWebServiceMessageSender()
-
-
Method Details
-
createConnection
public org.springframework.ws.test.client.MockSenderConnection createConnection(URI uri) throws IOException Description copied from interface:WebServiceMessageSenderCreate a newWebServiceConnectionto the specified URI.- Specified by:
createConnectionin interfaceWebServiceMessageSender- Parameters:
uri- the URI to open a connection to- Returns:
- the new connection
- Throws:
IOException- in case of I/O errors
-
supports
Always returnstrue.- Specified by:
supportsin interfaceWebServiceMessageSender- Parameters:
uri- the URI to be checked- Returns:
trueif thisWebServiceMessageSendersupports the supplied URI
-