Package org.junit.platform.suite.engine
Class LifecycleMethodUtils
java.lang.Object
org.junit.platform.suite.engine.LifecycleMethodUtils
Collection of utilities for working with test lifecycle methods.
- Since:
- 1.11
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static DiscoveryIssuecreateError(String message, Method method) findAfterSuiteMethods(Class<?> testClass, DiscoveryIssueReporter issueReporter) findBeforeSuiteMethods(Class<?> testClass, DiscoveryIssueReporter issueReporter) findMethodsAndCheckStaticAndNonPrivate(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.support.HierarchyTraversalMode traversalMode, DiscoveryIssueReporter issueReporter) private static DiscoveryIssueReporter.Condition<Method> hasNoParameters(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) private static DiscoveryIssueReporter.Condition<Method> isNotPrivate(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) private static DiscoveryIssueReporter.Condition<Method> isStatic(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) private static DiscoveryIssueReporter.Condition<Method> returnsPrimitiveVoid(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter)
-
Constructor Details
-
LifecycleMethodUtils
private LifecycleMethodUtils()
-
-
Method Details
-
findBeforeSuiteMethods
static List<Method> findBeforeSuiteMethods(Class<?> testClass, DiscoveryIssueReporter issueReporter) -
findAfterSuiteMethods
-
findMethodsAndCheckStaticAndNonPrivate
private static List<Method> findMethodsAndCheckStaticAndNonPrivate(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.support.HierarchyTraversalMode traversalMode, DiscoveryIssueReporter issueReporter) -
isStatic
private static DiscoveryIssueReporter.Condition<Method> isStatic(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) -
isNotPrivate
private static DiscoveryIssueReporter.Condition<Method> isNotPrivate(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) -
returnsPrimitiveVoid
private static DiscoveryIssueReporter.Condition<Method> returnsPrimitiveVoid(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) -
hasNoParameters
private static DiscoveryIssueReporter.Condition<Method> hasNoParameters(Class<? extends Annotation> annotationType, DiscoveryIssueReporter issueReporter) -
createError
-