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() |
Modifier and Type | Method and Description |
---|---|
protected TestDescriptor |
createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method) |
resolveElement, resolveUniqueId
private static final java.util.function.Predicate<java.lang.reflect.Method> isTestFactoryMethod
static final java.lang.String SEGMENT_TYPE
protected TestDescriptor createTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method method)
createTestDescriptor
in class AbstractMethodResolver