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 ClassesModifier and TypeClassDescriptionstatic class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private static final org.junit.platform.commons.logging.Logger
private final JupiterEngineExecutionContext.State
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
JupiterEngineExecutionContext
(EngineExecutionListener executionListener, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
beforeAllCallbacksExecuted
(boolean beforeAllCallbacksExecuted) Track that an attempt was made to executeBeforeAllCallback
extensions.boolean
void
beforeAllMethodsExecuted
(boolean beforeAllMethodsExecuted) Track that an attempt was made to execute@BeforeAll
methods.void
close()
extend()
org.junit.jupiter.api.extension.ExtensionContext
-
Field Details
-
logger
private static final org.junit.platform.commons.logging.Logger logger -
state
-
beforeAllCallbacksExecuted
private boolean beforeAllCallbacksExecuted -
beforeAllMethodsExecuted
private boolean beforeAllMethodsExecuted
-
-
Constructor Details
-
JupiterEngineExecutionContext
public JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration) -
JupiterEngineExecutionContext
-
-
Method Details
-
close
- Throws:
Exception
-
getExecutionListener
-
getConfiguration
-
getTestInstancesProvider
-
getExtensionRegistry
-
getExtensionContext
public org.junit.jupiter.api.extension.ExtensionContext 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
-