Class AbstractSoapMessageMatcher
java.lang.Object
org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
- All Implemented Interfaces:
WebServiceMessageMatcher
- Direct Known Subclasses:
SoapEnvelopeDiffMatcher
,SoapEnvelopeDiffMatcher
,SoapHeaderMatcher
Abstract base class for SOAP-specific
WebServiceMessageMatcher
implementations.
Asserts that the message given to match(WebServiceMessage)
is a SoapMessage
, and invokes
match(SoapMessage)
with it if so.
- Since:
- 2.0
- Author:
- Arjen Poutsma
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
match
(SoapMessage soapMessage) Abstract template method that gets invoked frommatch(WebServiceMessage)
if the given message is aSoapMessage
.final void
match
(WebServiceMessage message) Matches the given message against the expectations.
-
Constructor Details
-
AbstractSoapMessageMatcher
public AbstractSoapMessageMatcher()
-
-
Method Details
-
match
Description copied from interface:WebServiceMessageMatcher
Matches the given message against the expectations. Implementations typically make use of JUnit-based assertions.- Specified by:
match
in interfaceWebServiceMessageMatcher
- Parameters:
message
- the message- Throws:
IOException
- in case of I/O errorsAssertionError
- if expectations are not met
-
match
Abstract template method that gets invoked frommatch(WebServiceMessage)
if the given message is aSoapMessage
.- Parameters:
soapMessage
- the soap message- Throws:
IOException
- in case of I/O errorsAssertionError
- if expectations are not met
-