Class TestDescriptorUtils
java.lang.Object
org.antublue.test.engine.internal.descriptor.TestDescriptorUtils
Class to contain TestDescriptor utility methods
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentTestDescriptorcreateArgumentTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> clazz, Argument argument) Method to create an ArgumentTestDescriptorstatic ClassTestDescriptorcreateClassTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> clazz) Method to create a ClassTestDescriptorstatic MethodTestDescriptorcreateMethodTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> clazz, Argument argument, Method method) Method to create a MethodTestDescriptorstatic voidlogTestDescriptorTree(org.junit.platform.engine.TestDescriptor testDescriptor)
-
Method Details
-
createClassTestDescriptor
public static ClassTestDescriptor createClassTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> clazz) Method to create a ClassTestDescriptor- Parameters:
uniqueId- uniqueIdclazz- clazz- Returns:
- the return value
-
createArgumentTestDescriptor
public static ArgumentTestDescriptor createArgumentTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> clazz, Argument argument) Method to create an ArgumentTestDescriptor- Parameters:
uniqueId- uniqueIdclazz- clazzargument- argument- Returns:
- the return value
-
createMethodTestDescriptor
public static MethodTestDescriptor createMethodTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> clazz, Argument argument, Method method) Method to create a MethodTestDescriptor- Parameters:
uniqueId- uniqueIdclazz- clazzargument- argumentmethod- method- Returns:
- the return value
-
logTestDescriptorTree
public static void logTestDescriptorTree(org.junit.platform.engine.TestDescriptor testDescriptor) - Parameters:
testDescriptor- testDescriptor
-