java.lang.Object
org.springframework.ws.test.support.matcher.xmlunit2.DiffMatcher
All Implemented Interfaces:
WebServiceMessageMatcher
Direct Known Subclasses:
PayloadDiffMatcher

public abstract class DiffMatcher extends Object implements WebServiceMessageMatcher
Implementation of WebServiceMessageMatcher based on XMLUnit's Diff.
Since:
4.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract org.xmlunit.diff.Diff
    createDiff(org.springframework.ws.WebServiceMessage message)
    Creates a Diff for the given message.
    final 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
  • Constructor Details

    • DiffMatcher

      public DiffMatcher()
  • Method Details

    • match

      public final void match(org.springframework.ws.WebServiceMessage message) throws 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:
      AssertionError - if expectations are not met
    • createDiff

      protected abstract org.xmlunit.diff.Diff createDiff(org.springframework.ws.WebServiceMessage message)
      Creates a Diff for the given message.
      Parameters:
      message - the message
      Returns:
      the diff