Module org.junit.jupiter.engine
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 Object implements EngineExecutionContext
- Since:
- 5.0
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JupiterEngineExecutionContext.Builder
-
Constructor Summary
Constructors Constructor Description JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration)
-
Method Summary
Modifier and Type Method Description boolean
beforeAllCallbacksExecuted()
void
beforeAllCallbacksExecuted(boolean beforeAllCallbacksExecuted)
Track that an attempt was made to executeBeforeAllCallback
extensions.boolean
beforeAllMethodsExecuted()
void
beforeAllMethodsExecuted(boolean beforeAllMethodsExecuted)
Track that an attempt was made to execute@BeforeAll
methods.void
close()
JupiterEngineExecutionContext.Builder
extend()
JupiterConfiguration
getConfiguration()
EngineExecutionListener
getExecutionListener()
ExtensionContext
getExtensionContext()
MutableExtensionRegistry
getExtensionRegistry()
TestInstancesProvider
getTestInstancesProvider()
ThrowableCollector
getThrowableCollector()
-
Constructor Details
-
JupiterEngineExecutionContext
public JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration)
-
-
Method Details
-
close
- Throws:
Exception
-
getExecutionListener
-
getConfiguration
-
getTestInstancesProvider
-
getExtensionRegistry
-
getExtensionContext
-
getThrowableCollector
-
beforeAllCallbacksExecuted
public void beforeAllCallbacksExecuted(boolean beforeAllCallbacksExecuted)Track that an attempt was made to executeBeforeAllCallback
extensions.- Since:
- 5.3
-
beforeAllCallbacksExecuted
public boolean beforeAllCallbacksExecuted()- Returns:
true
if an attempt was made to executeBeforeAllCallback
extensions- Since:
- 5.3
-
beforeAllMethodsExecuted
public void beforeAllMethodsExecuted(boolean beforeAllMethodsExecuted)Track that an attempt was made to execute@BeforeAll
methods. -
beforeAllMethodsExecuted
public boolean beforeAllMethodsExecuted()- Returns:
true
if an attempt was made to execute@BeforeAll
methods
-
extend
-