public class ValidationMatcher
extends org.hamcrest.BaseMatcher
JAXPValidator.| Constructor and Description |
|---|
ValidationMatcher(Object... schemaSource) |
ValidationMatcher(Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
matches(Object instance) |
static ValidationMatcher |
valid(Object schemaSource)
Creates a matcher that validates the XML under test.
|
static ValidationMatcher |
valid(Schema schema)
Creates a matcher that validates the XML under test.
|
public ValidationMatcher(Object... schemaSource)
schemaSource - schema source document(s)public ValidationMatcher(Schema schema)
schema - schema source documentpublic boolean matches(Object instance)
public void describeTo(org.hamcrest.Description description)
public void describeMismatch(Object item, org.hamcrest.Description mismatchDescription)
describeMismatch in interface org.hamcrest.MatcherdescribeMismatch in class org.hamcrest.BaseMatcherpublic static ValidationMatcher valid(Object schemaSource)
schemaSource - schema source documentpublic static ValidationMatcher valid(Schema schema)
schema - schema source documentCopyright © 2001–2025 XMLUnit. All rights reserved.