public class SchemaValidatingMatcher extends Object implements WebServiceMessageMatcher
XmlValidator to validate request payload.| Constructor and Description |
|---|
SchemaValidatingMatcher(Resource schema,
Resource... furtherSchemas)
Creates a
SchemaValidatingMatcher based on the given schema resource(s). |
| Modifier and Type | Method and Description |
|---|---|
void |
match(WebServiceMessage message)
Matches the given message against the expectations.
|
public SchemaValidatingMatcher(Resource schema, Resource... furtherSchemas) throws IOException
SchemaValidatingMatcher based on the given schema resource(s).schema - the schemafurtherSchemas - further schemas, if necessaryIOException - in case of I/O errorspublic void match(WebServiceMessage message) throws IOException, AssertionError
WebServiceMessageMatchermatch in interface WebServiceMessageMatchermessage - the messageIOException - in case of I/O errorsAssertionError - if expectations are not met