Class LifecycleMethodUtils

java.lang.Object
org.junit.platform.suite.engine.LifecycleMethodUtils

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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static org.junit.platform.engine.DiscoveryIssue
    createError(String message, Method method)
     
    (package private) static List<Method>
    findAfterSuiteMethods(Class<?> testClass, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    (package private) static List<Method>
    findBeforeSuiteMethods(Class<?> testClass, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static List<Method>
    findMethodsAndCheckStaticAndNonPrivate(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.support.HierarchyTraversalMode traversalMode, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    hasNoParameters(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    isNotPrivate(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    isStatic(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    returnsPrimitiveVoid(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LifecycleMethodUtils

      private LifecycleMethodUtils()
  • Method Details

    • findBeforeSuiteMethods

      static List<Method> findBeforeSuiteMethods(Class<?> testClass, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • findAfterSuiteMethods

      static List<Method> findAfterSuiteMethods(Class<?> testClass, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • findMethodsAndCheckStaticAndNonPrivate

      private static List<Method> findMethodsAndCheckStaticAndNonPrivate(Class<?> testClass, Class<? extends Annotation> annotationType, org.junit.platform.commons.support.HierarchyTraversalMode traversalMode, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • isStatic

      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> isStatic(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • isNotPrivate

      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> isNotPrivate(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • returnsPrimitiveVoid

      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> returnsPrimitiveVoid(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • hasNoParameters

      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> hasNoParameters(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • createError

      private static org.junit.platform.engine.DiscoveryIssue createError(String message, Method method)