Class ArgumentTestDescriptor
java.lang.Object
org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
org.antublue.test.engine.internal.descriptor.ArgumentTestDescriptor
- All Implemented Interfaces:
MetadataTestDescriptor,org.junit.platform.engine.TestDescriptor
Class to implement a ArgumentTestDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor -
Field Summary
Fields inherited from class org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
metadata, stopWatch, throwableCollectorFields inherited from class org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentTestDescriptorcreate(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Argument<?> testArgument, int testArgumentIndex) Method to create an ArgumentTestDescriptorvoidexecute(ExecutionContext executionContext) Method to execute the test descriptorOptional<org.junit.platform.engine.TestSource> org.junit.platform.engine.TestDescriptor.TypegetType()voidskip(ExecutionContext executionContext) Method to skip child test descriptorstoString()Methods inherited from class org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
collectThrowables, getMetadataMethods inherited from class org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setUniqueIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Constructor Details
-
ArgumentTestDescriptor
public ArgumentTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName, Class<?> testClass, List<Method> beforeAllMethods, List<Method> afterAllMethods, Argument<?> testArgument) Constructor- Parameters:
uniqueId- uniqueIddisplayName- displayNametestClass- testClassbeforeAllMethods- beforeAllMethodsafterAllMethods- afterAllMethodstestArgument- testArgument
-
-
Method Details
-
getSource
- Specified by:
getSourcein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getSourcein classAbstractTestDescriptor
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType() -
execute
Description copied from class:ExecutableTestDescriptorMethod to execute the test descriptor- Specified by:
executein classExecutableTestDescriptor- Parameters:
executionContext- executionContext
-
skip
Description copied from class:ExecutableTestDescriptorMethod to skip child test descriptors- Specified by:
skipin classExecutableTestDescriptor- Parameters:
executionContext- executionContext
-
toString
- Overrides:
toStringin classExecutableTestDescriptor
-
create
public static ArgumentTestDescriptor create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Argument<?> testArgument, int testArgumentIndex) Method to create an ArgumentTestDescriptor- Parameters:
parentUniqueId- parentUniqueIdtestClass- testClasstestArgument- testArgumenttestArgumentIndex- testArgumentIndex- Returns:
- an ArgumentTestDescriptor
-