Package | Description |
---|---|
org.custommonkey.xmlunit |
Root of the XMLUnit 1.x compatibility layer.
|
org.xmlunit.diff |
Contains XMLUnit
DifferenceEngine that is
at the heart of all comparisons as well as supporting interfaces
and implementations. |
Modifier and Type | Class and Description |
---|---|
static class |
NewDifferenceEngine.ElementQualifier2ElementSelector |
Modifier and Type | Class and Description |
---|---|
class |
ByNameAndTextRecSelector
ElementSelector that allows two elements to be compared if
their name (including namespace URI, if any) and textual content is
the same and the same is true for all child elements recursively. |
class |
MultiLevelByNameAndTextSelector
ElementSelector that allows two elements to be compared if
their name (including namespace URI, if any) and textual content is
the same at a certain level of nesting. |
Modifier and Type | Field and Description |
---|---|
static ElementSelector |
ElementSelectors.byName
Elements with the same local name (and namespace URI - if any)
can be compared.
|
static ElementSelector |
ElementSelectors.byNameAndAllAttributes
Elements with the same local name (and namespace URI - if any)
and attribute values for all attributes can be compared.
|
static ElementSelector |
ElementSelectors.byNameAndText
Elements with the same local name (and namespace URI - if any)
and nested text (if any) can be compared.
|
static ElementSelector |
ElementSelectors.Default
Always returns true, i.e. each element can be compared to each
other element.
|
Modifier and Type | Method and Description |
---|---|
static ElementSelector |
ElementSelectors.and(ElementSelector... selectors)
Accepts two elements if all of the given ElementSelectors do.
|
ElementSelector |
ElementSelectors.ConditionalSelectorBuilder.build()
Builds a conditional ElementSelector.
|
static ElementSelector |
ElementSelectors.byNameAndAttributes(QName... attribs)
Elements with the same local name (and namespace URI - if any)
and attribute values for the given attribute names can be
compared.
|
static ElementSelector |
ElementSelectors.byNameAndAttributes(String... attribs)
Elements with the same local name (and namespace URI - if any)
and attribute values for the given attribute names can be
compared.
|
static ElementSelector |
ElementSelectors.byNameAndAttributesControlNS(String... attribs)
Elements with the same local name (and namespace URI - if any)
and attribute values for the given attribute names can be
compared.
|
static ElementSelector |
ElementSelectors.byXPath(String xpath,
ElementSelector childSelector)
Selects two elements as matching if the child elements selected
via XPath match using the given childSelector.
|
static ElementSelector |
ElementSelectors.byXPath(String xpath,
Map<String,String> prefix2Uri,
ElementSelector childSelector)
Selects two elements as matching if the child elements selected
via XPath match using the given childSelector.
|
static ElementSelector |
ElementSelectors.conditionalSelector(Predicate<? super Element> predicate,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element matches the given predicate.
|
static ElementSelector |
ElementSelectors.not(ElementSelector es)
Negates another ElementSelector.
|
static ElementSelector |
ElementSelectors.or(ElementSelector... selectors)
Accepts two elements if at least one of the given ElementSelectors does.
|
static ElementSelector |
ElementSelectors.selectorForElementNamed(QName expectedName,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element has the given name.
|
static ElementSelector |
ElementSelectors.selectorForElementNamed(String expectedName,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element has the given (local) name.
|
static ElementSelector |
ElementSelectors.xor(ElementSelector es1,
ElementSelector es2)
Accepts two elements if exactly on of the given ElementSelectors does.
|
Modifier and Type | Method and Description |
---|---|
static ElementSelector |
ElementSelectors.and(ElementSelector... selectors)
Accepts two elements if all of the given ElementSelectors do.
|
static ElementSelector |
ElementSelectors.byXPath(String xpath,
ElementSelector childSelector)
Selects two elements as matching if the child elements selected
via XPath match using the given childSelector.
|
static ElementSelector |
ElementSelectors.byXPath(String xpath,
Map<String,String> prefix2Uri,
ElementSelector childSelector)
Selects two elements as matching if the child elements selected
via XPath match using the given childSelector.
|
static ElementSelector |
ElementSelectors.conditionalSelector(Predicate<? super Element> predicate,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element matches the given predicate.
|
ElementSelectors.ConditionalSelectorBuilder |
ElementSelectors.ConditionalSelectorBuilder.elseUse(ElementSelector es)
Assigns a default ElementSelector that is used if all
when s have returned false. |
static ElementSelector |
ElementSelectors.not(ElementSelector es)
Negates another ElementSelector.
|
static ElementSelector |
ElementSelectors.or(ElementSelector... selectors)
Accepts two elements if at least one of the given ElementSelectors does.
|
static ElementSelector |
ElementSelectors.selectorForElementNamed(QName expectedName,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element has the given name.
|
static ElementSelector |
ElementSelectors.selectorForElementNamed(String expectedName,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element has the given (local) name.
|
ElementSelectors.ConditionalSelectorBuilder |
ElementSelectors.ConditionalSelectorBuilderThen.thenUse(ElementSelector es)
Specifies the ElementSelector to use when the condition holds true.
|
static ElementSelector |
ElementSelectors.xor(ElementSelector es1,
ElementSelector es2)
Accepts two elements if exactly on of the given ElementSelectors does.
|
Constructor and Description |
---|
DefaultNodeMatcher(DefaultNodeMatcher.NodeTypeMatcher ntm,
ElementSelector... es)
Creates a matcher using the given
ElementSelector s and
DefaultNodeMatcher.NodeTypeMatcher . |
DefaultNodeMatcher(ElementSelector... es)
Creates a matcher using the given
ElementSelector s and
DefaultNodeMatcher.DefaultNodeTypeMatcher . |
Copyright © 2001–2017 XMLUnit. All rights reserved.