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:
- SoapEnvelopeDiffMatcher, SoapHeaderMatcher
public abstract class AbstractSoapMessageMatcher
- extends 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
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(WebServiceMessage message)
throws IOException,
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:
IOException
- in case of I/O errors
AssertionError
- if expectations are not met
match
protected abstract void match(SoapMessage soapMessage)
throws IOException,
AssertionError
- Abstract template method that gets invoked from
match(WebServiceMessage)
if the given message is a
SoapMessage
.
- Parameters:
soapMessage
- the soap message
- Throws:
IOException
- in case of I/O errors
AssertionError
- if expectations are not met
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.