Class DynamicDescendantFilter
java.lang.Object
org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- All Implemented Interfaces:
BiPredicate<org.junit.platform.engine.UniqueId, Integer>
- Direct Known Subclasses:
DynamicDescendantFilter.WithoutIndexFiltering
@API(status=INTERNAL,
since="5.1")
public class DynamicDescendantFilter
extends Object
implements BiPredicate<org.junit.platform.engine.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
FieldsModifier and TypeFieldDescriptionprivate final Set<org.junit.platform.engine.UniqueId> private DynamicDescendantFilter.Mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallowAll()voidallowIndex(int index) voidallowIndex(Set<Integer> indices) voidallowUniqueIdPrefix(org.junit.platform.engine.UniqueId uniqueId) protected DynamicDescendantFilterconfigure(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer, DynamicDescendantFilter copy) copy(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer) private booleanprivate booleanisPrefixOrViceVersa(org.junit.platform.engine.UniqueId currentUniqueId, org.junit.platform.engine.UniqueId allowedUniqueId) private booleanisUniqueIdAllowed(org.junit.platform.engine.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
public void allowUniqueIdPrefix(org.junit.platform.engine.UniqueId uniqueId) -
allowIndex
public void allowIndex(int index) -
allowIndex
-
allowAll
public void allowAll() -
test
- Specified by:
testin interfaceBiPredicate<org.junit.platform.engine.UniqueId, Integer>
-
isEverythingAllowed
private boolean isEverythingAllowed() -
isUniqueIdAllowed
private boolean isUniqueIdAllowed(org.junit.platform.engine.UniqueId uniqueId) -
isPrefixOrViceVersa
private boolean isPrefixOrViceVersa(org.junit.platform.engine.UniqueId currentUniqueId, org.junit.platform.engine.UniqueId allowedUniqueId) -
withoutIndexFiltering
-
copy
public DynamicDescendantFilter copy(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer) -
configure
protected DynamicDescendantFilter configure(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer, DynamicDescendantFilter copy)
-