@API(value=Internal) public class ClassTestDescriptor extends JUnit5TestDescriptor implements org.junit.gen5.engine.support.hierarchical.Container<JUnit5EngineExecutionContext>
TestDescriptor for tests based on Java classes.
The pattern of the unique ID takes the form of
{parent unique id}:{fully qualified class name}.
| Constructor and Description |
|---|
ClassTestDescriptor(java.lang.String uniqueId,
java.lang.Class<?> testClass) |
| Modifier and Type | Method and Description |
|---|---|
JUnit5EngineExecutionContext |
afterAll(JUnit5EngineExecutionContext context) |
JUnit5EngineExecutionContext |
beforeAll(JUnit5EngineExecutionContext context) |
java.lang.String |
getDisplayName() |
java.lang.String |
getName() |
java.util.Set<org.junit.gen5.engine.TestTag> |
getTags() |
java.lang.Class<?> |
getTestClass() |
boolean |
isContainer() |
boolean |
isTest() |
JUnit5EngineExecutionContext |
prepare(JUnit5EngineExecutionContext context) |
org.junit.gen5.engine.support.hierarchical.Node.SkipResult |
shouldBeSkipped(JUnit5EngineExecutionContext context) |
protected TestInstanceProvider |
testInstanceProvider(JUnit5EngineExecutionContext context) |
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWithaccept, addChild, equals, findByUniqueId, getChildren, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toStringpublic ClassTestDescriptor(java.lang.String uniqueId,
java.lang.Class<?> testClass)
public final java.lang.Class<?> getTestClass()
public final java.lang.String getName()
getName in interface org.junit.gen5.engine.TestDescriptorpublic final java.lang.String getDisplayName()
getDisplayName in interface org.junit.gen5.engine.TestDescriptorpublic final java.util.Set<org.junit.gen5.engine.TestTag> getTags()
getTags in interface org.junit.gen5.engine.TestDescriptorgetTags in class org.junit.gen5.engine.support.descriptor.AbstractTestDescriptorpublic final boolean isTest()
isTest in interface org.junit.gen5.engine.TestDescriptorpublic final boolean isContainer()
isContainer in interface org.junit.gen5.engine.TestDescriptorpublic JUnit5EngineExecutionContext prepare(JUnit5EngineExecutionContext context)
prepare in interface org.junit.gen5.engine.support.hierarchical.Node<JUnit5EngineExecutionContext>public org.junit.gen5.engine.support.hierarchical.Node.SkipResult shouldBeSkipped(JUnit5EngineExecutionContext context) throws java.lang.Exception
shouldBeSkipped in interface org.junit.gen5.engine.support.hierarchical.Node<JUnit5EngineExecutionContext>java.lang.Exceptionpublic JUnit5EngineExecutionContext beforeAll(JUnit5EngineExecutionContext context) throws java.lang.Exception
beforeAll in interface org.junit.gen5.engine.support.hierarchical.Container<JUnit5EngineExecutionContext>java.lang.Exceptionpublic JUnit5EngineExecutionContext afterAll(JUnit5EngineExecutionContext context) throws java.lang.Exception
afterAll in interface org.junit.gen5.engine.support.hierarchical.Container<JUnit5EngineExecutionContext>java.lang.Exceptionprotected TestInstanceProvider testInstanceProvider(JUnit5EngineExecutionContext context)