Class TestEngineReflectionUtils

java.lang.Object
org.antublue.test.engine.internal.TestEngineReflectionUtils

public final class TestEngineReflectionUtils extends Object
Class to implement methods to get test class fields / methods, caching the information
  • Method Details

    • getParameterSupplierMethod

      public static Method getParameterSupplierMethod(Class<?> clazz)
      Method to get a @TestEngine.ParameterSupplier Method
      Parameters:
      clazz - class to inspect
      Returns:
      Method the return value
    • getParameters

      public static List<Parameter> getParameters(Class<?> clazz)
      Method to get a List of Parameters for a Class
      Parameters:
      clazz - class to inspect
      Returns:
      list of Parameters
    • getPrepareMethods

      public static List<Method> getPrepareMethods(Class<?> clazz)
      Method to get a List of @TestEngine.Prepare Methods sorted alphabetically
      Parameters:
      clazz - class to inspect
      Returns:
      list of Methods
    • getParameterField

      public static Field getParameterField(Class<?> clazz)
      Method to get a List of @TestEngine.Parameter Fields
      Parameters:
      clazz - class to inspect
      Returns:
      Field
    • getBeforeAllMethods

      public static List<Method> getBeforeAllMethods(Class<?> clazz)
      Method to get a List of @TestEngine.BeforeAll Methods sorted alphabetically
      Parameters:
      clazz - class to inspect
      Returns:
      list of Methods
    • getBeforeEachMethods

      public static List<Method> getBeforeEachMethods(Class<?> clazz)
      Method to get a List of @TestEngine.BeforeEach Methods sorted alphabetically
      Parameters:
      clazz - class to inspect
      Returns:
      list of Methods
    • getTestMethods

      public static List<Method> getTestMethods(Class<?> clazz)
      Method to get a List of @TestEngine.Test Methods sorted alphabetically
      Parameters:
      clazz - class to inspect
      Returns:
      list of Methods
    • getAfterEachMethods

      public static List<Method> getAfterEachMethods(Class<?> clazz)
      Method to get a List of @TestEngine.AfterEach Methods sorted alphabetically
      Parameters:
      clazz - class to inspect
      Returns:
      list of Methods
    • getAfterAllMethods

      public static List<Method> getAfterAllMethods(Class<?> clazz)
      Method to get a List of @TestEngine.AfterAll Methods sorted alphabetically
      Parameters:
      clazz - class to inspect
      Returns:
      list of Methods
    • getConcludeMethods

      public static List<Method> getConcludeMethods(Class<?> clazz)
      Method to get a @TestEngine.Conclude Methods
      Parameters:
      clazz - class to inspect
      Returns:
      Method the return value
    • getDisplayName

      public static String getDisplayName(Method method)
      Method to get a test method display name
      Parameters:
      method - method to get the display name for
      Returns:
      the display name
    • getDisplayName

      public static String getDisplayName(Class<?> clazz)
      Method to get a test method display name
      Parameters:
      clazz - class to get the display name for
      Returns:
      the display name