Class TestEngineReflectionUtils
java.lang.Object
org.antublue.test.engine.internal.TestEngineReflectionUtils
Class to implement methods to get test class fields / methods, caching the information
-
Method Summary
Modifier and TypeMethodDescriptiongetAfterAllMethods(Class<?> clazz) Method to get a List of @TestEngine.AfterAll Methods sorted alphabeticallygetAfterClassMethods(Class<?> clazz) Method to get a List of @TestEngine.AfterClass Methods sorted alphabeticallygetAfterEachMethods(Class<?> clazz) Method to get a List of @TestEngine.AfterEach Methods sorted alphabeticallygetBeforeAllMethods(Class<?> clazz) Method to get a List of @TestEngine.BeforeAll Methods sorted alphabeticallygetBeforeClassMethods(Class<?> clazz) Method to get a List of @TestEngine.BeforeClass Methods sorted alphabeticallygetBeforeEachMethods(Class<?> clazz) Method to get a List of @TestEngine.BeforeEach Methods sorted alphabeticallystatic StringgetDisplayName(Class<?> clazz) Method to get a test method display namestatic StringgetDisplayName(Method method) Method to get a test method display namegetParameterFields(Class<?> clazz) Method to get a List of @TestEngine.Parameter FieldsgetParameterMethods(Class<?> clazz) Method to get a List of @TestEngine.Parameter Methods sorted alphabeticallygetParameters(Class<?> clazz) Method to get a List of Parameters for a Classstatic MethodgetParameterSupplierMethod(Class<?> clazz) Method to get a @TestEngine.ParameterSupplier MethodgetTestMethods(Class<?> clazz) Method to get a List of @TestEngine.Test Methods sorted alphabetically
-
Method Details
-
getParameters
Method to get a List of Parameters for a Class- Parameters:
clazz- class to inspect- Returns:
- list of Parameters
-
getParameterFields
Method to get a List of @TestEngine.Parameter Fields- Parameters:
clazz- class to inspect- Returns:
- list of Fields
-
getBeforeClassMethods
Method to get a List of @TestEngine.BeforeClass Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getParameterMethods
Method to get a List of @TestEngine.Parameter Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getBeforeAllMethods
Method to get a List of @TestEngine.BeforeAll Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getBeforeEachMethods
Method to get a List of @TestEngine.BeforeEach Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getTestMethods
Method to get a List of @TestEngine.Test Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getAfterEachMethods
Method to get a List of @TestEngine.AfterEach Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getAfterAllMethods
Method to get a List of @TestEngine.AfterAll Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getAfterClassMethods
Method to get a List of @TestEngine.AfterClass Methods sorted alphabetically- Parameters:
clazz- class to inspect- Returns:
- list of Methods
-
getParameterSupplierMethod
Method to get a @TestEngine.ParameterSupplier Method- Parameters:
clazz- class to inspect- Returns:
- Method the return value
-
getDisplayName
Method to get a test method display name- Parameters:
method- method to get the display name for- Returns:
- the display name
-
getDisplayName
Method to get a test method display name- Parameters:
clazz- class to get the display name for- Returns:
- the display name
-