Class LifecycleMethodUtils
java.lang.Object
org.junit.jupiter.engine.descriptor.LifecycleMethodUtils
Collection of utilities for working with test lifecycle methods.
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertNonStatic
(Class<? extends Annotation> annotationType, Method method) private static void
assertStatic
(Class<? extends Annotation> annotationType, Method method) private static void
assertVoid
(Class<? extends Annotation> annotationType, Method method) findAfterAllMethods
(Class<?> testClass, boolean requireStatic) findAfterEachMethods
(Class<?> testClass) findBeforeAllMethods
(Class<?> testClass, boolean requireStatic) findBeforeEachMethods
(Class<?> testClass) findMethodsAndAssertNonStaticAndNonPrivate
(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode traversalMode) findMethodsAndAssertStaticAndNonPrivate
(Class<?> testClass, boolean requireStatic, Class<? extends Annotation> annotationType, org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode traversalMode) findMethodsAndCheckVoidReturnType
(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode traversalMode)
-
Constructor Details
-
LifecycleMethodUtils
private LifecycleMethodUtils()
-
-
Method Details
-
findBeforeAllMethods
-
findAfterAllMethods
-
findBeforeEachMethods
-
findAfterEachMethods
-
findMethodsAndAssertStaticAndNonPrivate
private static List<Method> findMethodsAndAssertStaticAndNonPrivate(Class<?> testClass, boolean requireStatic, Class<? extends Annotation> annotationType, org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode traversalMode) -
findMethodsAndAssertNonStaticAndNonPrivate
private static List<Method> findMethodsAndAssertNonStaticAndNonPrivate(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode traversalMode) -
findMethodsAndCheckVoidReturnType
private static List<Method> findMethodsAndCheckVoidReturnType(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode traversalMode) -
assertStatic
-
assertNonStatic
-
assertVoid
-