Class JupiterEngineExecutionContext
java.lang.Object
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- All Implemented Interfaces:
org.junit.platform.engine.support.hierarchical.EngineExecutionContext
@API(status=INTERNAL,
since="5.0")
public class JupiterEngineExecutionContext
extends java.lang.Object
implements org.junit.platform.engine.support.hierarchical.EngineExecutionContext
- Since:
- 5.0
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJupiterEngineExecutionContext.Builder -
Constructor Summary
Constructors Constructor Description JupiterEngineExecutionContext(org.junit.platform.engine.EngineExecutionListener executionListener, JupiterConfiguration configuration) -
Method Summary
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()org.junit.platform.engine.EngineExecutionListenergetExecutionListener()org.junit.jupiter.api.extension.ExtensionContextgetExtensionContext()MutableExtensionRegistrygetExtensionRegistry()TestInstancesProvidergetTestInstancesProvider()org.junit.platform.engine.support.hierarchical.ThrowableCollectorgetThrowableCollector()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JupiterEngineExecutionContext
public JupiterEngineExecutionContext(org.junit.platform.engine.EngineExecutionListener executionListener, JupiterConfiguration configuration)
-
-
Method Details
-
close
public void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
getExecutionListener
public org.junit.platform.engine.EngineExecutionListener getExecutionListener() -
getConfiguration
-
getTestInstancesProvider
-
getExtensionRegistry
-
getExtensionContext
public org.junit.jupiter.api.extension.ExtensionContext getExtensionContext() -
getThrowableCollector
public org.junit.platform.engine.support.hierarchical.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
-