Package org.junit.support.testng.engine
Class ClassDescriptor
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
- org.junit.support.testng.engine.ClassDescriptor
-
- All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
class ClassDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classClassDescriptor.EntireClassExecutionStrategy(package private) static interfaceClassDescriptor.ExecutionStrategy(package private) classClassDescriptor.IncludeMethodsExecutionStrategy
-
Field Summary
Fields Modifier and Type Field Description (package private) ClassDescriptor.ExecutionStrategyexecutionStrategyprivate java.util.concurrent.ConcurrentMap<java.lang.String,MethodDescriptor>methodsById(package private) java.util.concurrent.atomic.AtomicIntegerremainingIterations(package private) static java.lang.StringSEGMENT_TYPEprivate java.util.Set<org.junit.platform.engine.TestTag>tagsprivate java.lang.Class<?>testClass
-
Constructor Summary
Constructors Constructor Description ClassDescriptor(org.junit.platform.engine.UniqueId uniqueId, java.lang.Class<?> testClass, java.util.Set<org.junit.platform.engine.TestTag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(org.junit.platform.engine.TestDescriptor child)private static java.lang.StringdetermineDisplayName(java.lang.Class<?> testClass)java.util.Optional<MethodDescriptor>findMethodDescriptor(org.testng.ITestResult result)java.lang.StringgetLegacyReportingName()java.util.Set<org.junit.platform.engine.TestTag>getTags()(package private) java.lang.Class<?>getTestClass()org.junit.platform.engine.TestDescriptor.TypegetType()voidincludeTestMethod(java.lang.String methodName)voidprepareExecution()voidremoveChild(org.junit.platform.engine.TestDescriptor child)voidselectEntireClass()private java.lang.StringtoChildKey(org.junit.platform.engine.TestDescriptor child)-
Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, orderChildren, removeFromHierarchy, setParent, toString
-
-
-
-
Field Detail
-
SEGMENT_TYPE
static final java.lang.String SEGMENT_TYPE
- See Also:
- Constant Field Values
-
methodsById
private final java.util.concurrent.ConcurrentMap<java.lang.String,MethodDescriptor> methodsById
-
testClass
private final java.lang.Class<?> testClass
-
tags
private final java.util.Set<org.junit.platform.engine.TestTag> tags
-
remainingIterations
final java.util.concurrent.atomic.AtomicInteger remainingIterations
-
executionStrategy
ClassDescriptor.ExecutionStrategy executionStrategy
-
-
Method Detail
-
determineDisplayName
private static java.lang.String determineDisplayName(java.lang.Class<?> testClass)
-
getLegacyReportingName
public java.lang.String getLegacyReportingName()
-
getTestClass
java.lang.Class<?> getTestClass()
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType()
-
getTags
public java.util.Set<org.junit.platform.engine.TestTag> getTags()
- Specified by:
getTagsin interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getTagsin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
addChild
public void addChild(org.junit.platform.engine.TestDescriptor child)
- Specified by:
addChildin interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
addChildin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
removeChild
public void removeChild(org.junit.platform.engine.TestDescriptor child)
- Specified by:
removeChildin interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
removeChildin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
toChildKey
private java.lang.String toChildKey(org.junit.platform.engine.TestDescriptor child)
-
findMethodDescriptor
public java.util.Optional<MethodDescriptor> findMethodDescriptor(org.testng.ITestResult result)
-
includeTestMethod
public void includeTestMethod(java.lang.String methodName)
-
selectEntireClass
public void selectEntireClass()
-
prepareExecution
public void prepareExecution()
-
-