public class SchemaValidatingMatcher extends Object implements WebServiceMessageMatcher
XmlValidator
to validate request payload.Constructor and Description |
---|
SchemaValidatingMatcher(org.springframework.core.io.Resource schema,
org.springframework.core.io.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(org.springframework.core.io.Resource schema, org.springframework.core.io.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
WebServiceMessageMatcher
match
in interface WebServiceMessageMatcher
message
- the messageIOException
- in case of I/O errorsAssertionError
- if expectations are not metCopyright © 2020 Pivotal Software. All rights reserved.