Class SchemaValidatingMatcher

java.lang.Object
org.springframework.ws.test.support.matcher.SchemaValidatingMatcher
All Implemented Interfaces:
WebServiceMessageMatcher

public class SchemaValidatingMatcher extends Object implements WebServiceMessageMatcher
Uses the XmlValidator to validate request payload.
Since:
2.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    SchemaValidatingMatcher(org.springframework.core.io.Resource schema, org.springframework.core.io.Resource... furtherSchemas)
    Creates a SchemaValidatingMatcher based on the given schema resource(s).
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    • SchemaValidatingMatcher

      public SchemaValidatingMatcher(org.springframework.core.io.Resource schema, org.springframework.core.io.Resource... furtherSchemas) throws IOException
      Creates a SchemaValidatingMatcher based on the given schema resource(s).
      Parameters:
      schema - the schema
      furtherSchemas - further schemas, if necessary
      Throws:
      IOException - in case of I/O errors
  • Method Details