Spring Web Services Framework

org.springframework.ws.test.support.matcher
Class DiffMatcher

java.lang.Object
  extended by org.springframework.ws.test.support.matcher.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:
2.0
Author:
Arjen Poutsma

Constructor Summary
DiffMatcher()
           
 
Method Summary
protected abstract  org.custommonkey.xmlunit.Diff createDiff(WebServiceMessage message)
          Creates a Diff for the given message.
 void match(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 Detail

DiffMatcher

public DiffMatcher()
Method Detail

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

createDiff

protected abstract org.custommonkey.xmlunit.Diff createDiff(WebServiceMessage message)
Creates a Diff for the given message.

Parameters:
message - the message
Returns:
the diff
Throws:
Exception - in case of errors

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.