Class TestUtils
- java.lang.Object
-
- org.antublue.test.engine.internal.test.util.TestUtils
-
public class TestUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetDisplayName(Class<?> testClass)Method to get a test method display namestatic StringgetDisplayName(Method testMethod)Method to get a test method display namestatic StringgetTag(AnnotatedElement annotatedElement)Method to get a test class tag valuestatic voidinvoke(Method method, Object testInstance, Object testArgument, ThrowableContext throwableContext)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 classstatic TestUtilssingleton()
-
-
-
Method Detail
-
singleton
public static TestUtils singleton()
-
invoke
public static void invoke(Method method, Object testInstance, Object testArgument, ThrowableContext throwableContext)
-
getDisplayName
public static String getDisplayName(Class<?> testClass)
Method to get a test method display name- Parameters:
testClass- testClass- Returns:
- the display name
-
getDisplayName
public static String getDisplayName(Method testMethod)
Method to get a test method display name- Parameters:
testMethod- testMethod- Returns:
- the display name
-
getTag
public static String getTag(AnnotatedElement annotatedElement)
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
-
-