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
ConstructorDescriptionSchemaValidatingMatcher
(org.springframework.core.io.Resource schema, org.springframework.core.io.Resource... furtherSchemas) Creates aSchemaValidatingMatcher
based on the given schema resource(s). -
Method Summary
Modifier and TypeMethodDescriptionvoid
match
(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 aSchemaValidatingMatcher
based 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:WebServiceMessageMatcher
Matches the given message against the expectations. Implementations typically make use of JUnit-based assertions.- Specified by:
match
in interfaceWebServiceMessageMatcher
- Parameters:
message
- the message- Throws:
IOException
- in case of I/O errorsAssertionError
- if expectations are not met
-