Package org.xmlunit.matchers
Class ValidationMatcher
java.lang.Object
org.hamcrest.BaseMatcher
org.xmlunit.matchers.ValidationMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher
,org.hamcrest.SelfDescribing
public class ValidationMatcher
extends org.hamcrest.BaseMatcher
Hamcrest Matcher for XML Validation against W3C XML Schema using
JAXPValidator
.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Source
private ValidationResult
private final Schema
private final Source[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
describeMismatch
(Object item, org.hamcrest.Description mismatchDescription) void
describeTo
(org.hamcrest.Description description) boolean
static ValidationMatcher
static ValidationMatcher
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Field Details
-
schemaSource
-
schema
-
instance
-
result
-
-
Constructor Details
-
ValidationMatcher
-
ValidationMatcher
- Since:
- XMLUnit 2.3.0
-
-
Method Details
-
matches
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatch
- Specified by:
describeMismatch
in interfaceorg.hamcrest.Matcher
- Overrides:
describeMismatch
in classorg.hamcrest.BaseMatcher
-
valid
-
valid
- Since:
- XMLUnit 2.3.0
-