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, ExtensionContextInternal
- 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, org.junit.jupiter.api.extension.ExtensionContext.StoreScope -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.junit.jupiter.api.extension.TestInstancesprivate final ThrowableCollector -
Constructor Summary
ConstructorsConstructorDescriptionMethodExtensionContext(org.junit.jupiter.api.extension.ExtensionContext parent, EngineExecutionListener engineExecutionListener, TestMethodTestDescriptor testDescriptor, JupiterConfiguration configuration, ExtensionRegistry extensionRegistry, LauncherStoreFacade launcherStoreFacade, ThrowableCollector throwableCollector) -
Method Summary
Modifier and TypeMethodDescriptionprotected Node.ExecutionModeOptional<org.junit.jupiter.api.TestInstance.Lifecycle> Optional<org.junit.jupiter.api.extension.TestInstances> (package private) voidsetTestInstances(org.junit.jupiter.api.extension.TestInstances testInstances) Methods inherited from class AbstractExtensionContext
close, getConfigurationParameter, getConfigurationParameter, getDisplayName, getExecutableInvoker, getExecutionMode, getExtensions, getParent, getRoot, getStore, getStore, getTags, getTestDescriptor, getUniqueId, publishDirectory, publishFile, publishReportEntryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.ExtensionContext
getRequiredTestClass, getRequiredTestInstance, getRequiredTestInstances, getRequiredTestMethod, publishFile, 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, ExtensionRegistry extensionRegistry, LauncherStoreFacade launcherStoreFacade, ThrowableCollector throwableCollector)
-
-
Method Details
-
getElement
-
getTestClass
-
getEnclosingTestClasses
-
getTestInstanceLifecycle
-
getTestInstance
-
getTestInstances
-
setTestInstances
void setTestInstances(org.junit.jupiter.api.extension.TestInstances testInstances) -
getTestMethod
-
getExecutionException
-
getPlatformExecutionMode
- Specified by:
getPlatformExecutionModein classAbstractExtensionContext<TestMethodTestDescriptor>
-