Module org.junit.vintage.engine
Class TestRun.VintageDescriptors
- java.lang.Object
-
- org.junit.vintage.engine.execution.TestRun.VintageDescriptors
-
- Enclosing class:
- TestRun
private static class TestRun.VintageDescriptors extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<VintageTestDescriptor>
descriptors
private static TestRun.VintageDescriptors
NONE
private int
skippedOrStartedCount
-
Constructor Summary
Constructors Constructor Description VintageDescriptors()
VintageDescriptors(java.util.List<VintageTestDescriptor> descriptors)
VintageDescriptors(VintageTestDescriptor vintageTestDescriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(VintageTestDescriptor descriptor)
java.util.Optional<VintageTestDescriptor>
getNextUnstarted()
(package private) java.util.Optional<VintageTestDescriptor>
getUnambiguously(org.junit.runner.Description description)
Returns theTestDescriptor
that represents the specifiedDescription
.void
incrementSkippedOrStarted()
(package private) static TestRun.VintageDescriptors
merge(TestRun.VintageDescriptors a, TestRun.VintageDescriptors b)
-
-
-
Field Detail
-
NONE
private static final TestRun.VintageDescriptors NONE
-
descriptors
private final java.util.List<VintageTestDescriptor> descriptors
-
skippedOrStartedCount
private int skippedOrStartedCount
-
-
Constructor Detail
-
VintageDescriptors
VintageDescriptors(VintageTestDescriptor vintageTestDescriptor)
-
VintageDescriptors
VintageDescriptors()
-
VintageDescriptors
VintageDescriptors(java.util.List<VintageTestDescriptor> descriptors)
-
-
Method Detail
-
merge
static TestRun.VintageDescriptors merge(TestRun.VintageDescriptors a, TestRun.VintageDescriptors b)
-
add
void add(VintageTestDescriptor descriptor)
-
getUnambiguously
java.util.Optional<VintageTestDescriptor> getUnambiguously(org.junit.runner.Description description)
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
public java.util.Optional<VintageTestDescriptor> getNextUnstarted()
-
-