Class LifecycleMethodUtils


  • final class LifecycleMethodUtils
    extends java.lang.Object
    Collection of utilities for working with test lifecycle methods.
    Since:
    1.11
    • Constructor Detail

      • LifecycleMethodUtils

        private LifecycleMethodUtils()
    • Method Detail

      • findBeforeSuiteMethods

        static java.util.List<java.lang.reflect.Method> findBeforeSuiteMethods​(java.lang.Class<?> testClass,
                                                                               DiscoveryIssueReporter issueReporter)
      • findAfterSuiteMethods

        static java.util.List<java.lang.reflect.Method> findAfterSuiteMethods​(java.lang.Class<?> testClass,
                                                                              DiscoveryIssueReporter issueReporter)
      • findMethodsAndCheckStaticAndNonPrivate

        private static java.util.List<java.lang.reflect.Method> findMethodsAndCheckStaticAndNonPrivate​(java.lang.Class<?> testClass,
                                                                                                       java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                                                                                       org.junit.platform.commons.support.HierarchyTraversalMode traversalMode,
                                                                                                       DiscoveryIssueReporter issueReporter)
      • createError

        private static DiscoveryIssue createError​(java.lang.String message,
                                                  java.lang.reflect.Method method)