Class MockWebServiceMessageSender
java.lang.Object
org.springframework.ws.test.client.MockWebServiceMessageSender
- All Implemented Interfaces:
WebServiceMessageSender
Mock implementation of
WebServiceMessageSender
. Contains a list of expected MockSenderConnection
s,
and iterates over those.- Since:
- 2.0
- Author:
- Arjen Poutsma, Lukas Krecan, Greg Turnquist
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ws.test.client.MockSenderConnection
createConnection
(URI uri) Create a newWebServiceConnection
to the specified URI.boolean
Always 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:WebServiceMessageSender
Create a newWebServiceConnection
to the specified URI.- Specified by:
createConnection
in 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:
supports
in interfaceWebServiceMessageSender
- Parameters:
uri
- the URI to be checked- Returns:
true
if thisWebServiceMessageSender
supports the supplied URI
-