Class TestRun.VintageDescriptors
java.lang.Object
org.junit.vintage.engine.execution.TestRun.VintageDescriptors
- Enclosing class:
TestRun
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<VintageTestDescriptor> private static final TestRun.VintageDescriptors
private int
-
Constructor Summary
ConstructorsConstructorDescriptionVintageDescriptors
(List<VintageTestDescriptor> descriptors) VintageDescriptors
(VintageTestDescriptor vintageTestDescriptor) -
Method Summary
Modifier and TypeMethodDescription(package private) void
add
(VintageTestDescriptor descriptor) (package private) Optional
<VintageTestDescriptor> getUnambiguously
(org.junit.runner.Description description) Returns theTestDescriptor
that represents the specifiedDescription
.void
(package private) static TestRun.VintageDescriptors
-
Field Details
-
NONE
-
descriptors
-
skippedOrStartedCount
private int skippedOrStartedCount
-
-
Constructor Details
-
VintageDescriptors
VintageDescriptors(VintageTestDescriptor vintageTestDescriptor) -
VintageDescriptors
VintageDescriptors() -
VintageDescriptors
VintageDescriptors(List<VintageTestDescriptor> descriptors)
-
-
Method Details
-
merge
-
add
-
getUnambiguously
Returns theTestDescriptor
that represents the specifiedDescription
.There are edge cases where multiple
Descriptions
with the sameuniqueId
exist, e.g. when using overloaded methods to define theories. In this case, we try to find the correctTestDescriptor
by checking for object identity on theDescription
it represents.- Parameters:
description
- theDescription
to look up
-
incrementSkippedOrStarted
public void incrementSkippedOrStarted() -
getNextUnstarted
-