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) class
ClassDescriptor.EntireClassExecutionStrategy
(package private) static interface
ClassDescriptor.ExecutionStrategy
(package private) class
ClassDescriptor.IncludeMethodsExecutionStrategy
-
Field Summary
Fields Modifier and Type Field Description (package private) ClassDescriptor.ExecutionStrategy
executionStrategy
private java.util.concurrent.ConcurrentMap<java.lang.String,MethodDescriptor>
methodsById
(package private) java.util.concurrent.atomic.AtomicInteger
remainingIterations
(package private) static java.lang.String
SEGMENT_TYPE
private java.util.Set<org.junit.platform.engine.TestTag>
tags
private 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 void
addChild(org.junit.platform.engine.TestDescriptor child)
private static java.lang.String
determineDisplayName(java.lang.Class<?> testClass)
java.util.Optional<MethodDescriptor>
findMethodDescriptor(org.testng.ITestResult result)
java.lang.String
getLegacyReportingName()
java.util.Set<org.junit.platform.engine.TestTag>
getTags()
(package private) java.lang.Class<?>
getTestClass()
org.junit.platform.engine.TestDescriptor.Type
getType()
void
includeTestMethod(java.lang.String methodName)
void
prepareExecution()
void
removeChild(org.junit.platform.engine.TestDescriptor child)
void
selectEntireClass()
private java.lang.String
toChildKey(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, 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:
getTags
in interfaceorg.junit.platform.engine.TestDescriptor
- Overrides:
getTags
in classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
addChild
public void addChild(org.junit.platform.engine.TestDescriptor child)
- Specified by:
addChild
in interfaceorg.junit.platform.engine.TestDescriptor
- Overrides:
addChild
in classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
removeChild
public void removeChild(org.junit.platform.engine.TestDescriptor child)
- Specified by:
removeChild
in interfaceorg.junit.platform.engine.TestDescriptor
- Overrides:
removeChild
in 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()
-
-