Class DynamicDescendantFilter
java.lang.Object
org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- All Implemented Interfaces:
BiPredicate<UniqueId,Integer>
- Direct Known Subclasses:
DynamicDescendantFilter.WithoutIndexFiltering
@API(status=INTERNAL,
since="5.1")
public class DynamicDescendantFilter
extends Object
implements BiPredicate<UniqueId,Integer>
Filter for dynamic descendants of
TestDescriptors that
implement Filterable.- Since:
- 5.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallowAll()voidallowIndex(int index) voidallowIndex(Set<Integer> indices) voidallowUniqueIdPrefix(UniqueId uniqueId) protected DynamicDescendantFilterconfigure(UnaryOperator<UniqueId> uniqueIdTransformer, DynamicDescendantFilter copy) copy(UnaryOperator<UniqueId> uniqueIdTransformer) private booleanprivate booleanisPrefixOrViceVersa(UniqueId currentUniqueId, UniqueId allowedUniqueId) private booleanisUniqueIdAllowed(UniqueId uniqueId) booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Field Details
-
allowedUniqueIds
-
allowedIndices
-
mode
-
-
Constructor Details
-
DynamicDescendantFilter
public DynamicDescendantFilter()
-
-
Method Details
-
allowUniqueIdPrefix
-
allowIndex
public void allowIndex(int index) -
allowIndex
-
allowAll
public void allowAll() -
test
-
isEverythingAllowed
private boolean isEverythingAllowed() -
isUniqueIdAllowed
-
isPrefixOrViceVersa
-
withoutIndexFiltering
-
copy
-
configure
protected DynamicDescendantFilter configure(UnaryOperator<UniqueId> uniqueIdTransformer, DynamicDescendantFilter copy)
-