Package | Description |
---|---|
org.xmlunit.builder |
Provides fluent builders for core parts of XMLUnit.
|
org.xmlunit.diff |
Contains XMLUnit
DifferenceEngine that is
at the heart of all comparisons as well as supporting interfaces
and implementations. |
org.xmlunit.matchers |
Hamcrest matchers on top of XMLUnit's core.
|
org.xmlunit.util |
Internal utilities hiding the differences between .NET and Java
implementations.
|
Modifier and Type | Method and Description |
---|---|
DiffBuilder |
DiffBuilder.withAttributeFilter(Predicate<Attr> attributeFilter)
Registers a filter for attributes.
|
DiffBuilder |
DiffBuilder.withNodeFilter(Predicate<Node> nodeFilter)
Registers a filter for nodes.
|
Modifier and Type | Field and Description |
---|---|
static Predicate<Node> |
NodeFilters.Default
Suppresses document-type and XML declaration nodes.
|
Modifier and Type | Method and Description |
---|---|
protected Predicate<Attr> |
AbstractDifferenceEngine.getAttributeFilter()
Provides access to the configured ComparisonController.
|
protected Predicate<Node> |
AbstractDifferenceEngine.getNodeFilter()
Provides access to the configured ComparisonController.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
DifferenceEngine.setAttributeFilter(Predicate<Attr> attributeFilter)
Sets the optional strategy that decides which attributes to
consider and which to ignore during comparison.
|
void |
AbstractDifferenceEngine.setAttributeFilter(Predicate<Attr> af) |
void |
DifferenceEngine.setNodeFilter(Predicate<Node> nodeFilter)
Sets the optional strategy that decides which nodes to
consider and which to ignore during comparison.
|
void |
AbstractDifferenceEngine.setNodeFilter(Predicate<Node> nf) |
ElementSelectors.ConditionalSelectorBuilderThen |
ElementSelectors.ConditionalSelectorBuilder.when(Predicate<? super Element> predicate)
Sets up a conditional ElementSelector.
|
Modifier and Type | Method and Description |
---|---|
CompareMatcher |
CompareMatcher.withAttributeFilter(Predicate<Attr> attributeFilter) |
CompareMatcher |
CompareMatcher.withNodeFilter(Predicate<Node> nodeFilter) |
Modifier and Type | Class and Description |
---|---|
class |
IsNullPredicate
A function that tests whether an object is null.
|
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
Linqy.all(Iterable<T> sequence,
Predicate<? super T> predicate)
Determines whether a given predicate holds true for all
elements.
|
static <T> boolean |
Linqy.any(Iterable<T> sequence,
Predicate<? super T> predicate)
Determines whether a given predicate holds true for at least
one element.
|
static <T> Iterable<T> |
Linqy.filter(Iterable<T> sequence,
Predicate<? super T> filter)
Exclude all elements from an iterable that don't match a given
predicate.
|
Copyright © 2001–2017 XMLUnit. All rights reserved.