Class DiffMatcher
java.lang.Object
org.springframework.ws.test.support.matcher.xmlunit2.DiffMatcher
- All Implemented Interfaces:
WebServiceMessageMatcher
- Direct Known Subclasses:
PayloadDiffMatcher
Implementation of
WebServiceMessageMatcher based on XMLUnit's Diff.- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.xmlunit.diff.DiffcreateDiff(org.springframework.ws.WebServiceMessage message) Creates aDifffor the given message.final voidmatch(org.springframework.ws.WebServiceMessage message) Matches the given message against the expectations.
-
Constructor Details
-
DiffMatcher
public DiffMatcher()
-
-
Method Details
-
match
Description copied from interface:WebServiceMessageMatcherMatches the given message against the expectations. Implementations typically make use of JUnit-based assertions.- Specified by:
matchin interfaceWebServiceMessageMatcher- Parameters:
message- the message- Throws:
AssertionError- if expectations are not met
-
createDiff
protected abstract org.xmlunit.diff.Diff createDiff(org.springframework.ws.WebServiceMessage message) Creates aDifffor the given message.- Parameters:
message- the message- Returns:
- the diff
-