Class IterationSelector
java.lang.Object
org.junit.platform.engine.discovery.IterationSelector
- All Implemented Interfaces:
DiscoverySelector
@API(status=MAINTAINED,
since="1.13.3")
public class IterationSelector
extends Object
implements DiscoverySelector
A
DiscoverySelector that selects the iterations of a parent
DiscoverySelector via their indices so that
TestEngines can discover
a subset of the iterations of tests or containers.- Since:
- 1.9
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIterationSelector(DiscoverySelector parentSelector, int... iterationIndices) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate StringGet the selected iteration indices.Get the selected parentDiscoverySelector.inthashCode()Return the identifier of this selector.toSortedSet(int[] iterationIndices) toString()
-
Field Details
-
parentSelector
-
iterationIndices
-
-
Constructor Details
-
IterationSelector
IterationSelector(DiscoverySelector parentSelector, int... iterationIndices)
-
-
Method Details
-
toSortedSet
-
getParentSelector
Get the selected parentDiscoverySelector. -
getIterationIndices
-
equals
-
hashCode
-
toString
-
toIdentifier
Description copied from interface:DiscoverySelectorReturn the identifier of this selector.The returned identifier must be parsable by a corresponding
DiscoverySelectorIdentifierParser.The default implementation returns
Optional.empty(). Can be overridden by concrete implementations.- Specified by:
toIdentifierin interfaceDiscoverySelector- Returns:
- an
Optionalcontaining the identifier of this selector; nevernullbut potentially empty if the selector does not support identifiers
-
formatIterationIndicesAsRanges
-