Class LifecycleMethodUtils

java.lang.Object
org.junit.jupiter.engine.descriptor.LifecycleMethodUtils

final class LifecycleMethodUtils extends Object
Collection of utilities for working with test lifecycle methods.
Since:
5.0
  • Constructor Details

    • LifecycleMethodUtils

      private LifecycleMethodUtils()
  • Method Details

    • findBeforeAllMethods

      static List<Method> findBeforeAllMethods(Class<?> testClass, boolean requireStatic)
    • findAfterAllMethods

      static List<Method> findAfterAllMethods(Class<?> testClass, boolean requireStatic)
    • findBeforeEachMethods

      static List<Method> findBeforeEachMethods(Class<?> testClass)
    • findAfterEachMethods

      static List<Method> findAfterEachMethods(Class<?> testClass)
    • 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

      private static void assertStatic(Class<? extends Annotation> annotationType, Method method)
    • assertNonStatic

      private static void assertNonStatic(Class<? extends Annotation> annotationType, Method method)
    • assertVoid

      private static void assertVoid(Class<? extends Annotation> annotationType, Method method)