@API(value=Internal) public class MethodTestDescriptor extends JUnit5TestDescriptor implements org.junit.gen5.engine.support.hierarchical.Leaf<JUnit5EngineExecutionContext>
TestDescriptor for tests based on Java methods.| Constructor and Description |
|---|
MethodTestDescriptor(java.lang.String uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
| Modifier and Type | Method and Description |
|---|---|
JUnit5EngineExecutionContext |
execute(JUnit5EngineExecutionContext context) |
java.lang.String |
getDisplayName() |
java.lang.String |
getName() |
java.util.Set<org.junit.gen5.engine.TestTag> |
getTags() |
java.lang.Class<?> |
getTestClass() |
java.lang.reflect.Method |
getTestMethod() |
boolean |
isContainer() |
boolean |
isTest() |
JUnit5EngineExecutionContext |
prepare(JUnit5EngineExecutionContext context) |
org.junit.gen5.engine.support.hierarchical.Node.SkipResult |
shouldBeSkipped(JUnit5EngineExecutionContext context) |
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWithaccept, addChild, equals, findByUniqueId, getChildren, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toStringpublic MethodTestDescriptor(java.lang.String uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod)
public 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 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.lang.Class<?> getTestClass()
public final java.lang.reflect.Method getTestMethod()
public 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) throws java.lang.Exception
prepare in interface org.junit.gen5.engine.support.hierarchical.Node<JUnit5EngineExecutionContext>java.lang.Exceptionpublic 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 execute(JUnit5EngineExecutionContext context) throws java.lang.Exception
execute in interface org.junit.gen5.engine.support.hierarchical.Leaf<JUnit5EngineExecutionContext>java.lang.Exception