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
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebServiceMessageSender
WebServiceMessageSender.DestinationDescriptor, WebServiceMessageSender.DestinationPolicy<D>, WebServiceMessageSender.UriSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ws.test.client.MockSenderConnectioncreateConnection(URI uri) Create a newWebServiceConnectionto the specified URI.booleansupports(URI uri, WebServiceMessageSender.UriSource uriSource) Always returnstrue.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebServiceMessageSender
supports
-
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 checkeduriSource- whether the URI is application-controlled or remote-influenced- Returns:
trueif this sender accepts the URI for that source
-