Class SchemaValidatingMatcher
java.lang.Object
org.springframework.ws.test.support.matcher.SchemaValidatingMatcher
- All Implemented Interfaces:
WebServiceMessageMatcher
Uses the
XmlValidator to validate request payload.- Since:
- 2.0
- Author:
- Lukas Krecan, Arjen Poutsma
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaValidatingMatcher(org.springframework.core.io.Resource schema, org.springframework.core.io.Resource... furtherSchemas) Creates aSchemaValidatingMatcherbased on the given schema resource(s). -
Method Summary
Modifier and TypeMethodDescriptionvoidmatch(WebServiceMessage message) Matches the given message against the expectations.
-
Constructor Details
-
SchemaValidatingMatcher
public SchemaValidatingMatcher(org.springframework.core.io.Resource schema, org.springframework.core.io.Resource... furtherSchemas) throws IOException Creates aSchemaValidatingMatcherbased on the given schema resource(s).- Parameters:
schema- the schemafurtherSchemas- further schemas, if necessary- Throws:
IOException- in case of I/O errors
-
-
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:
IOException- in case of I/O errorsAssertionError- if expectations are not met
-