Module org.junit.jupiter.engine
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(Set<Integer> indices) voidallowUniqueIdPrefix(UniqueId uniqueId) private booleanprivate booleanisPrefixOrViceVersa(UniqueId currentUniqueId, UniqueId allowedUniqueId) private booleanisUniqueIdAllowed(UniqueId uniqueId) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Field Details
-
allowedUniqueIds
-
allowedIndices
-
mode
-
-
Constructor Details
-
DynamicDescendantFilter
public DynamicDescendantFilter()
-
-
Method Details
-
allowUniqueIdPrefix
-
allowIndex
-
allowAll
public void allowAll() -
test
- Specified by:
testin interfaceBiPredicate<UniqueId,Integer>
-
isEverythingAllowed
private boolean isEverythingAllowed() -
isUniqueIdAllowed
-
isPrefixOrViceVersa
-
withoutIndexFiltering
-