Class JupiterEngineExecutionContext
- java.lang.Object
-
- org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
-
- All Implemented Interfaces:
EngineExecutionContext
@API(status=INTERNAL, since="5.0") public class JupiterEngineExecutionContext extends java.lang.Object implements EngineExecutionContext- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJupiterEngineExecutionContext.Builderprivate static classJupiterEngineExecutionContext.State
-
Field Summary
Fields Modifier and Type Field Description private booleanbeforeAllCallbacksExecutedprivate booleanbeforeAllMethodsExecutedprivate JupiterEngineExecutionContext.Statestate
-
Constructor Summary
Constructors Modifier Constructor Description privateJupiterEngineExecutionContext(JupiterEngineExecutionContext.State state)JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration, LauncherStoreFacade launcherStoreFacade)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbeforeAllCallbacksExecuted()voidbeforeAllCallbacksExecuted(boolean beforeAllCallbacksExecuted)Track that an attempt was made to executeBeforeAllCallbackextensions.booleanbeforeAllMethodsExecuted()voidbeforeAllMethodsExecuted(boolean beforeAllMethodsExecuted)Track that an attempt was made to execute@BeforeAllmethods.voidclose()JupiterEngineExecutionContext.Builderextend()JupiterConfigurationgetConfiguration()EngineExecutionListenergetExecutionListener()org.junit.jupiter.api.extension.ExtensionContextgetExtensionContext()MutableExtensionRegistrygetExtensionRegistry()LauncherStoreFacadegetLauncherStoreFacade()TestInstancesProvidergetTestInstancesProvider()ThrowableCollectorgetThrowableCollector()
-
-
-
Field Detail
-
state
private final JupiterEngineExecutionContext.State state
-
beforeAllCallbacksExecuted
private boolean beforeAllCallbacksExecuted
-
beforeAllMethodsExecuted
private boolean beforeAllMethodsExecuted
-
-
Constructor Detail
-
JupiterEngineExecutionContext
public JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration, LauncherStoreFacade launcherStoreFacade)
-
JupiterEngineExecutionContext
private JupiterEngineExecutionContext(JupiterEngineExecutionContext.State state)
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
getExecutionListener
public EngineExecutionListener getExecutionListener()
-
getConfiguration
public JupiterConfiguration getConfiguration()
-
getLauncherStoreFacade
public LauncherStoreFacade getLauncherStoreFacade()
-
getTestInstancesProvider
public TestInstancesProvider getTestInstancesProvider()
-
getExtensionRegistry
public MutableExtensionRegistry getExtensionRegistry()
-
getExtensionContext
public org.junit.jupiter.api.extension.ExtensionContext getExtensionContext()
-
getThrowableCollector
public ThrowableCollector getThrowableCollector()
-
beforeAllCallbacksExecuted
public void beforeAllCallbacksExecuted(boolean beforeAllCallbacksExecuted)
Track that an attempt was made to executeBeforeAllCallbackextensions.- Since:
- 5.3
-
beforeAllCallbacksExecuted
public boolean beforeAllCallbacksExecuted()
- Returns:
trueif an attempt was made to executeBeforeAllCallbackextensions- Since:
- 5.3
-
beforeAllMethodsExecuted
public void beforeAllMethodsExecuted(boolean beforeAllMethodsExecuted)
Track that an attempt was made to execute@BeforeAllmethods.
-
beforeAllMethodsExecuted
public boolean beforeAllMethodsExecuted()
- Returns:
trueif an attempt was made to execute@BeforeAllmethods
-
extend
public JupiterEngineExecutionContext.Builder extend()
-
-