org.springframework.ws.test.support.matcher
Class AbstractSoapMessageMatcher
java.lang.Object
org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
- All Implemented Interfaces:
- WebServiceMessageMatcher
- Direct Known Subclasses:
- SoapHeaderMatcher
public abstract class AbstractSoapMessageMatcher
- extends java.lang.Object
- implements WebServiceMessageMatcher
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
|
Method Summary |
protected abstract void |
match(org.springframework.ws.soap.SoapMessage soapMessage)
Abstract template method that gets invoked from match(WebServiceMessage) if the given message is a
SoapMessage. |
void |
match(org.springframework.ws.WebServiceMessage message)
Matches the given message against the expectations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSoapMessageMatcher
public AbstractSoapMessageMatcher()
match
public final void match(org.springframework.ws.WebServiceMessage message)
throws java.io.IOException,
java.lang.AssertionError
- Description copied from interface:
WebServiceMessageMatcher
- Matches the given message against the expectations. Implementations typically make use of JUnit-based
assertions.
- Specified by:
match in interface WebServiceMessageMatcher
- Parameters:
message - the message
- Throws:
java.io.IOException - in case of I/O errors
java.lang.AssertionError - if expectations are not met
match
protected abstract void match(org.springframework.ws.soap.SoapMessage soapMessage)
throws java.io.IOException,
java.lang.AssertionError
- Abstract template method that gets invoked from
match(WebServiceMessage) if the given message is a
SoapMessage.
- Parameters:
soapMessage - the soap message
- Throws:
java.io.IOException - in case of I/O errors
java.lang.AssertionError - if expectations are not met
Copyright © 2011. All Rights Reserved.