private static enum MethodSelectorResolver.MethodType extends java.lang.Enum<MethodSelectorResolver.MethodType>
Enum Constant and Description |
---|
TEST |
TEST_FACTORY |
TEST_TEMPLATE |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
dynamicDescendantSegmentTypes |
private java.util.function.Predicate<java.lang.reflect.Method> |
methodPredicate |
private java.lang.String |
segmentType |
Modifier and Type | Method and Description |
---|---|
protected abstract TestDescriptor |
createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method,
JupiterConfiguration configuration) |
private UniqueId |
createUniqueId(java.lang.reflect.Method method,
TestDescriptor parent) |
private java.util.Optional<TestDescriptor> |
resolve(java.util.List<java.lang.Class<?>> enclosingClasses,
java.lang.Class<?> testClass,
java.lang.reflect.Method method,
SelectorResolver.Context context,
JupiterConfiguration configuration) |
private java.util.Optional<TestDescriptor> |
resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId,
SelectorResolver.Context context,
JupiterConfiguration configuration) |
private DiscoverySelector |
selectClass(java.util.List<java.lang.Class<?>> enclosingClasses,
java.lang.Class<?> testClass) |
static MethodSelectorResolver.MethodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MethodSelectorResolver.MethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodSelectorResolver.MethodType TEST
public static final MethodSelectorResolver.MethodType TEST_FACTORY
public static final MethodSelectorResolver.MethodType TEST_TEMPLATE
private final java.util.function.Predicate<java.lang.reflect.Method> methodPredicate
private final java.lang.String segmentType
private final java.util.Set<java.lang.String> dynamicDescendantSegmentTypes
public static MethodSelectorResolver.MethodType[] values()
for (MethodSelectorResolver.MethodType c : MethodSelectorResolver.MethodType.values()) System.out.println(c);
public static MethodSelectorResolver.MethodType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprivate java.util.Optional<TestDescriptor> resolve(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> testClass, java.lang.reflect.Method method, SelectorResolver.Context context, JupiterConfiguration configuration)
private DiscoverySelector selectClass(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> testClass)
private java.util.Optional<TestDescriptor> resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId, SelectorResolver.Context context, JupiterConfiguration configuration)
private UniqueId createUniqueId(java.lang.reflect.Method method, TestDescriptor parent)
protected abstract TestDescriptor createTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method method, JupiterConfiguration configuration)