Class MethodExtensionContext
java.lang.Object
org.junit.jupiter.engine.descriptor.AbstractExtensionContext<TestMethodTestDescriptor>
org.junit.jupiter.engine.descriptor.MethodExtensionContext
- All Implemented Interfaces:
AutoCloseable
,org.junit.jupiter.api.extension.ExtensionContext
- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.ExtensionContext
org.junit.jupiter.api.extension.ExtensionContext.Namespace, org.junit.jupiter.api.extension.ExtensionContext.Store
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.junit.jupiter.api.extension.TestInstances
private final ThrowableCollector
-
Constructor Summary
ConstructorsConstructorDescriptionMethodExtensionContext
(org.junit.jupiter.api.extension.ExtensionContext parent, EngineExecutionListener engineExecutionListener, TestMethodTestDescriptor testDescriptor, JupiterConfiguration configuration, ThrowableCollector throwableCollector, org.junit.jupiter.api.extension.ExecutableInvoker executableInvoker) -
Method Summary
Modifier and TypeMethodDescriptionprotected Node.ExecutionMode
Optional
<org.junit.jupiter.api.TestInstance.Lifecycle> Optional
<org.junit.jupiter.api.extension.TestInstances> (package private) void
setTestInstances
(org.junit.jupiter.api.extension.TestInstances testInstances) Methods inherited from class org.junit.jupiter.engine.descriptor.AbstractExtensionContext
close, getConfigurationParameter, getConfigurationParameter, getDisplayName, getExecutableInvoker, getExecutionMode, getParent, getRoot, getStore, getTags, getTestDescriptor, getUniqueId, publishReportEntry
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.jupiter.api.extension.ExtensionContext
getRequiredTestClass, getRequiredTestInstance, getRequiredTestInstances, getRequiredTestMethod, publishReportEntry, publishReportEntry
-
Field Details
-
throwableCollector
-
testInstances
private org.junit.jupiter.api.extension.TestInstances testInstances
-
-
Constructor Details
-
MethodExtensionContext
MethodExtensionContext(org.junit.jupiter.api.extension.ExtensionContext parent, EngineExecutionListener engineExecutionListener, TestMethodTestDescriptor testDescriptor, JupiterConfiguration configuration, ThrowableCollector throwableCollector, org.junit.jupiter.api.extension.ExecutableInvoker executableInvoker)
-
-
Method Details
-
getElement
-
getTestClass
-
getTestInstanceLifecycle
-
getTestInstance
-
getTestInstances
-
setTestInstances
void setTestInstances(org.junit.jupiter.api.extension.TestInstances testInstances) -
getTestMethod
-
getExecutionException
-
getPlatformExecutionMode
- Specified by:
getPlatformExecutionMode
in classAbstractExtensionContext<TestMethodTestDescriptor>
-