class TestFactoryMethodResolver extends AbstractMethodResolver
TestFactoryMethodResolver
is an ElementResolver
that is
able to resolve methods annotated with @TestFactory
.
It creates TestFactoryTestDescriptor
instances.
ElementResolver
,
TestFactory
,
TestFactoryTestDescriptor
Modifier and Type | Field and Description |
---|---|
private static java.util.function.Predicate<java.lang.reflect.Method> |
isTestFactoryMethod |
(package private) static java.lang.String |
SEGMENT_TYPE |
Constructor and Description |
---|
TestFactoryMethodResolver(JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected TestDescriptor |
createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method,
JupiterConfiguration configuration) |
resolveElement, resolveUniqueId
private static final java.util.function.Predicate<java.lang.reflect.Method> isTestFactoryMethod
static final java.lang.String SEGMENT_TYPE
TestFactoryMethodResolver(JupiterConfiguration configuration)
protected TestDescriptor createTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method method, JupiterConfiguration configuration)
createTestDescriptor
in class AbstractMethodResolver