Top Description Inners Fields Constructors Methods
org.junit.jupiter.engine.descriptor

public Class DynamicDescendantFilter

extends Object
implements BiPredicate<UniqueId, Integer>
Class Inheritance
All Implemented Interfaces
java.util.function.BiPredicate
Known Direct Subclasses
org.junit.jupiter.engine.descriptor.DynamicDescendantFilter.WithoutIndexFiltering
Annotations
@API
status:INTERNAL
since:5.1
Static Imports
org.apiguardian.api.API.Status.INTERNAL

Filter for dynamic descendants of TestDescriptors that implement Filterable.
Since
5.1
See Also
Filterable

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
private class

Field Summary

Modifier and TypeField and Description
private final Set<Integer>
private final Set<UniqueId>
private DynamicDescendantFilter.Mode

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
allowIndex(int index)

public void
public void
protected DynamicDescendantFilter
public DynamicDescendantFilter
copy(UnaryOperator<UniqueId> uniqueIdTransformer)

private boolean
private boolean
isPrefixOrViceVersa(UniqueId currentUniqueId, UniqueId allowedUniqueId)

private boolean
public boolean
test(UniqueId uniqueId, Integer index)

Implements java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

public DynamicDescendantFilter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowedIndicesback to summary
private final Set<Integer> allowedIndices
allowedUniqueIdsback to summary
private final Set<UniqueId> allowedUniqueIds
modeback to summary
private DynamicDescendantFilter.Mode mode

Constructor Detail

DynamicDescendantFilterback to summary
public DynamicDescendantFilter()

Method Detail

allowAllback to summary
public void allowAll()
allowIndexback to summary
public void allowIndex(int index)
allowIndexback to summary
public void allowIndex(Set<Integer> indices)
allowUniqueIdPrefixback to summary
public void allowUniqueIdPrefix(UniqueId uniqueId)
configureback to summary
protected DynamicDescendantFilter configure(UnaryOperator<UniqueId> uniqueIdTransformer, DynamicDescendantFilter copy)
copyback to summary
public DynamicDescendantFilter copy(UnaryOperator<UniqueId> uniqueIdTransformer)
isEverythingAllowedback to summary
private boolean isEverythingAllowed()
isPrefixOrViceVersaback to summary
private boolean isPrefixOrViceVersa(UniqueId currentUniqueId, UniqueId allowedUniqueId)
isUniqueIdAllowedback to summary
private boolean isUniqueIdAllowed(UniqueId uniqueId)
testback to summary
public boolean test(UniqueId uniqueId, Integer index)

Implements java.util.function.BiPredicate.test.

Doc from java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

Annotations
@Override
withoutIndexFilteringback to summary
public DynamicDescendantFilter withoutIndexFiltering()
org.junit.jupiter.engine.descriptor back to summary

private final Enum DynamicDescendantFilter.Mode

extends Enum<DynamicDescendantFilter.Mode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final DynamicDescendantFilter.Mode
public static final DynamicDescendantFilter.Mode

Constructor Summary

AccessConstructor and Description
private
Mode()

Method Summary

Modifier and TypeMethod and Description
public static DynamicDescendantFilter.Mode
public static DynamicDescendantFilter.Mode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALLOW_ALLback to summary
public static final DynamicDescendantFilter.Mode ALLOW_ALL
EXPLICITback to summary
public static final DynamicDescendantFilter.Mode EXPLICIT

Constructor Detail

Modeback to summary
private Mode()

Method Detail

valueOfback to summary
public static DynamicDescendantFilter.Mode valueOf(String name)
valuesback to summary
public static DynamicDescendantFilter.Mode[] values()
org.junit.jupiter.engine.descriptor back to summary

private Class DynamicDescendantFilter.WithoutIndexFiltering

extends DynamicDescendantFilter
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public DynamicDescendantFilter
public boolean
test(UniqueId uniqueId, Integer index)

Overrides org.junit.jupiter.engine.descriptor.DynamicDescendantFilter.test.

Implements java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

public DynamicDescendantFilter
Inherited from org.junit.jupiter.engine.descriptor.DynamicDescendantFilter:
allowAllallowIndexallowIndexallowUniqueIdPrefixconfigure

Constructor Detail

WithoutIndexFilteringback to summary
private WithoutIndexFiltering()

Method Detail

copyback to summary
public DynamicDescendantFilter copy(UnaryOperator<UniqueId> uniqueIdTransformer)

Overrides org.junit.jupiter.engine.descriptor.DynamicDescendantFilter.copy.

Annotations
@Override
testback to summary
public boolean test(UniqueId uniqueId, Integer index)

Overrides org.junit.jupiter.engine.descriptor.DynamicDescendantFilter.test.

Implements java.util.function.BiPredicate.test.

Doc from java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

Annotations
@Override
withoutIndexFilteringback to summary
public DynamicDescendantFilter withoutIndexFiltering()

Overrides org.junit.jupiter.engine.descriptor.DynamicDescendantFilter.withoutIndexFiltering.

Annotations
@Override