Class TestUtils
java.lang.Object
org.antublue.test.engine.internal.util.TestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDisplayName(Class<?> testClass) Method to get a test method display namestatic StringgetDisplayName(Method testMethod) Method to get a test method display namestatic TestUtilsstatic StringgetTag(AnnotatedElement annotatedElement) Method to get a test class tag valuestatic voidinvoke(Method method, Object testInstance, Object testArgument, ThrowableContext throwableContext) orderTestMethods(List<Method> testMethods, org.junit.platform.commons.support.HierarchyTraversalMode hierarchyTraversalMode) Method to order test methods within the hierarchy, keeping the groups by component type / declaring class
-
Method Details
-
getInstance
-
invoke
public static void invoke(Method method, Object testInstance, Object testArgument, ThrowableContext throwableContext) -
getDisplayName
Method to get a test method display name- Parameters:
testClass- testClass- Returns:
- the display name
-
getDisplayName
Method to get a test method display name- Parameters:
testMethod- testMethod- Returns:
- the display name
-
getTag
Method to get a test class tag value- Parameters:
annotatedElement- annotatedElement- Returns:
- the tag value
-
orderTestMethods
public static List<Method> orderTestMethods(List<Method> testMethods, org.junit.platform.commons.support.HierarchyTraversalMode hierarchyTraversalMode) Method to order test methods within the hierarchy, keeping the groups by component type / declaring class- Parameters:
testMethods- testMethods- Returns:
- the list of methods ordered
-