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 class
JupiterEngineExecutionContext.Builder
private static class
JupiterEngineExecutionContext.State
-
Field Summary
Fields Modifier and Type Field Description private boolean
beforeAllCallbacksExecuted
private boolean
beforeAllMethodsExecuted
private static Logger
logger
private JupiterEngineExecutionContext.State
state
-
Constructor Summary
Constructors Modifier Constructor Description private
JupiterEngineExecutionContext(JupiterEngineExecutionContext.State state)
JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Field Detail
-
logger
private static final Logger logger
-
state
private final JupiterEngineExecutionContext.State state
-
beforeAllCallbacksExecuted
private boolean beforeAllCallbacksExecuted
-
beforeAllMethodsExecuted
private boolean beforeAllMethodsExecuted
-
-
Constructor Detail
-
JupiterEngineExecutionContext
public JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration)
-
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()
-
getTestInstancesProvider
public TestInstancesProvider getTestInstancesProvider()
-
getExtensionRegistry
public MutableExtensionRegistry getExtensionRegistry()
-
getExtensionContext
public ExtensionContext getExtensionContext()
-
getThrowableCollector
public ThrowableCollector 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
public JupiterEngineExecutionContext.Builder extend()
-
-