Module org.junit.jupiter.engine
Enum MethodSelectorResolver.MethodType
- java.lang.Object
-
- java.lang.Enum<MethodSelectorResolver.MethodType>
-
- org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodSelectorResolver.MethodType>
- Enclosing class:
- MethodSelectorResolver
private static enum MethodSelectorResolver.MethodType extends java.lang.Enum<MethodSelectorResolver.MethodType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TEST
TEST_FACTORY
TEST_TEMPLATE
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>
dynamicDescendantSegmentTypes
private java.util.function.Predicate<java.lang.reflect.Method>
methodPredicate
private java.lang.String
segmentType
-
Constructor Summary
Constructors Modifier Constructor Description private
MethodType(java.util.function.Predicate<java.lang.reflect.Method> methodPredicate, java.lang.String segmentType, java.lang.String... dynamicDescendantSegmentTypes)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
TEST
public static final MethodSelectorResolver.MethodType TEST
-
TEST_FACTORY
public static final MethodSelectorResolver.MethodType TEST_FACTORY
-
TEST_TEMPLATE
public static final MethodSelectorResolver.MethodType TEST_TEMPLATE
-
-
Method Detail
-
values
public static MethodSelectorResolver.MethodType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodSelectorResolver.MethodType c : MethodSelectorResolver.MethodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodSelectorResolver.MethodType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
resolve
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)
-
selectClass
private DiscoverySelector selectClass(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> testClass)
-
resolveUniqueIdIntoTestDescriptor
private java.util.Optional<TestDescriptor> resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId, SelectorResolver.Context context, JupiterConfiguration configuration)
-
createUniqueId
private UniqueId createUniqueId(java.lang.reflect.Method method, TestDescriptor parent)
-
createTestDescriptor
protected abstract TestDescriptor createTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method method, JupiterConfiguration configuration)
-
-