Module org.junit.jupiter.engine
Class IsTestFactoryMethod
java.lang.Object
org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethod
Test if a method is a JUnit Jupiter
@TestFactory
method.
NOTE: this predicate does not check if a candidate method
has an appropriate return type for a @TestFactory
method.
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static DiscoveryIssue
createIssue
(Class<? extends Annotation> annotationType, Method method, String condition) protected static DiscoveryIssueReporter.Condition
<Method> hasVoidReturnType
(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) boolean
-
Constructor Details
-
IsTestFactoryMethod
-
-
Method Details
-
test
-
hasVoidReturnType
protected static DiscoveryIssueReporter.Condition<Method> hasVoidReturnType(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) -
createIssue
protected static DiscoveryIssue createIssue(Class<? extends Annotation> annotationType, Method method, String condition)
-