Enum MethodSelectorResolver.MethodType
java.lang.Object
java.lang.Enum<MethodSelectorResolver.MethodType>
org.junit.jupiter.engine.discovery.MethodSelectorResolver.MethodType
- All Implemented Interfaces:
Serializable
,Comparable<MethodSelectorResolver.MethodType>
,java.lang.constant.Constable
- Enclosing class:
MethodSelectorResolver
private static enum MethodSelectorResolver.MethodType
extends Enum<MethodSelectorResolver.MethodType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MethodType
(Predicate<Method> methodPredicate, String segmentType, String... dynamicDescendantSegmentTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TestDescriptor
createTestDescriptor
(UniqueId uniqueId, Class<?> testClass, Method method, JupiterConfiguration configuration) private UniqueId
createUniqueId
(Method method, TestDescriptor parent) private Optional
<TestDescriptor> resolve
(List<Class<?>> enclosingClasses, Class<?> testClass, Method method, SelectorResolver.Context context, JupiterConfiguration configuration) private Optional
<TestDescriptor> resolveUniqueIdIntoTestDescriptor
(UniqueId uniqueId, SelectorResolver.Context context, JupiterConfiguration configuration) private DiscoverySelector
selectClass
(List<Class<?>> enclosingClasses, Class<?> testClass) 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 Details
-
TEST
-
TEST_FACTORY
-
TEST_TEMPLATE
-
-
Field Details
-
methodPredicate
-
segmentType
-
dynamicDescendantSegmentTypes
-
-
Constructor Details
-
MethodType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
private Optional<TestDescriptor> resolve(List<Class<?>> enclosingClasses, Class<?> testClass, Method method, SelectorResolver.Context context, JupiterConfiguration configuration) -
selectClass
-
resolveUniqueIdIntoTestDescriptor
private Optional<TestDescriptor> resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId, SelectorResolver.Context context, JupiterConfiguration configuration) -
createUniqueId
-
createTestDescriptor
protected abstract TestDescriptor createTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method method, JupiterConfiguration configuration)
-