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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.junit.platform.launcher.TestPlancreateTestPlan(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.ConfigurationParameters configurationParameters)Method to create a TestPlan from a TestDescriptorstatic List<Method>getAfterAllMethods(Class<?> clazz)Method to get a List of @TestEngine.AfterAll Methods sorted alphabeticallystatic List<Method>getAfterClassMethods(Class<?> clazz)Method to get a List of @TestEngine.AfterClass Methods sorted alphabeticallystatic List<Method>getAfterEachMethods(Class<?> clazz)Method to get a List of @TestEngine.AfterEach Methods sorted alphabeticallystatic List<Method>getBeforeAllMethods(Class<?> clazz)Method to get a List of @TestEngine.BeforeAll Methods sorted alphabeticallystatic List<Method>getBeforeClassMethods(Class<?> clazz)Method to get a List of @TestEngine.BeforeClass Methods sorted alphabeticallystatic List<Method>getBeforeEachMethods(Class<?> clazz)Method to get a List of @TestEngine.BeforeEach Methods sorted alphabeticallystatic List<Field>getParameterFields(Class<?> clazz)Method to get a List of @TestEngine.Parameter Fieldsstatic List<Method>getParameterMethods(Class<?> clazz)Method to get a List of @TestEngine.Parameter Methods sorted alphabeticallystatic List<Parameter>getParameters(Class<?> clazz)Method to get a List of Parameters for a Classstatic List<Method>getTestMethods(Class<?> clazz)Method to get a List of @TestEngine.Test Methods sorted alphabetically
-
-
-
Method Detail
-
getParameters
public static List<Parameter> getParameters(Class<?> clazz)
Method to get a List of Parameters for a Class- Parameters:
clazz-- Returns:
-
getParameterFields
public static List<Field> getParameterFields(Class<?> clazz)
Method to get a List of @TestEngine.Parameter Fields- Parameters:
clazz-- Returns:
-
getBeforeClassMethods
public static List<Method> getBeforeClassMethods(Class<?> clazz)
Method to get a List of @TestEngine.BeforeClass Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getParameterMethods
public static List<Method> getParameterMethods(Class<?> clazz)
Method to get a List of @TestEngine.Parameter Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getBeforeAllMethods
public static List<Method> getBeforeAllMethods(Class<?> clazz)
Method to get a List of @TestEngine.BeforeAll Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getBeforeEachMethods
public static List<Method> getBeforeEachMethods(Class<?> clazz)
Method to get a List of @TestEngine.BeforeEach Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getTestMethods
public static List<Method> getTestMethods(Class<?> clazz)
Method to get a List of @TestEngine.Test Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getAfterEachMethods
public static List<Method> getAfterEachMethods(Class<?> clazz)
Method to get a List of @TestEngine.AfterEach Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getAfterAllMethods
public static List<Method> getAfterAllMethods(Class<?> clazz)
Method to get a List of @TestEngine.AfterAll Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
getAfterClassMethods
public static List<Method> getAfterClassMethods(Class<?> clazz)
Method to get a List of @TestEngine.AfterClass Methods sorted alphabetically- Parameters:
clazz-- Returns:
-
createTestPlan
public static org.junit.platform.launcher.TestPlan createTestPlan(org.junit.platform.engine.TestDescriptor testDescriptor, org.junit.platform.engine.ConfigurationParameters configurationParameters)Method to create a TestPlan from a TestDescriptor- Parameters:
testDescriptor-configurationParameters-- Returns:
-
-