Top Inners Fields Constructors Methods
org.junit.jupiter.engine.execution

public Class JupiterEngineExecutionContext

extends Object
implements EngineExecutionContext
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.support.hierarchical.EngineExecutionContext
Annotations
@API
status:INTERNAL
since:5.0
Static Imports
java.util.Objects.requireNonNull, org.apiguardian.api.API.Status.INTERNAL

Since
5.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private final JupiterEngineExecutionContext.State

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
public void
beforeAllCallbacksExecuted(boolean beforeAllCallbacksExecuted)

Track that an attempt was made to execute BeforeAllCallback extensions.

public boolean

Returns:

true if an attempt was made to execute BeforeAllCallback extensions
beforeAllCallbacksExecuted
()

public void
beforeAllMethodsExecuted(boolean beforeAllMethodsExecuted)

Track that an attempt was made to execute @BeforeAll methods.

public boolean

Returns:

true if an attempt was made to execute @BeforeAll methods
beforeAllMethodsExecuted
()

public void
public JupiterEngineExecutionContext.Builder
public JupiterConfiguration
public EngineExecutionListener
public ExtensionContext
public MutableExtensionRegistry
public LauncherStoreFacade
public TestInstancesProvider
public ThrowableCollector
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beforeAllCallbacksExecutedback to summary
private boolean beforeAllCallbacksExecuted
beforeAllMethodsExecutedback to summary
private boolean beforeAllMethodsExecuted
stateback to summary
private final JupiterEngineExecutionContext.State state

Constructor Detail

JupiterEngineExecutionContextback to summary
public JupiterEngineExecutionContext(EngineExecutionListener executionListener, JupiterConfiguration configuration, LauncherStoreFacade launcherStoreFacade)
JupiterEngineExecutionContextback to summary
private JupiterEngineExecutionContext(JupiterEngineExecutionContext.State state)

Method Detail

beforeAllCallbacksExecutedback to summary
public void beforeAllCallbacksExecuted(boolean beforeAllCallbacksExecuted)

Track that an attempt was made to execute BeforeAllCallback extensions.

Since
5.3
beforeAllCallbacksExecutedback to summary
public boolean beforeAllCallbacksExecuted()
Returns:boolean

true if an attempt was made to execute BeforeAllCallback extensions

Since
5.3
beforeAllMethodsExecutedback to summary
public void beforeAllMethodsExecuted(boolean beforeAllMethodsExecuted)

Track that an attempt was made to execute @BeforeAll methods.

beforeAllMethodsExecutedback to summary
public boolean beforeAllMethodsExecuted()
Returns:boolean

true if an attempt was made to execute @BeforeAll methods

closeback to summary
public void close() throws Exception
extendback to summary
public JupiterEngineExecutionContext.Builder extend()
getConfigurationback to summary
public JupiterConfiguration getConfiguration()
getExecutionListenerback to summary
public EngineExecutionListener getExecutionListener()
getExtensionContextback to summary
public ExtensionContext getExtensionContext()
getExtensionRegistryback to summary
public MutableExtensionRegistry getExtensionRegistry()
getLauncherStoreFacadeback to summary
public LauncherStoreFacade getLauncherStoreFacade()
getTestInstancesProviderback to summary
public TestInstancesProvider getTestInstancesProvider()
getThrowableCollectorback to summary
public ThrowableCollector getThrowableCollector()
org.junit.jupiter.engine.execution back to summary

public Class JupiterEngineExecutionContext.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builder

Field Summary

Modifier and TypeField and Description
private @Nullable JupiterEngineExecutionContext.State
private JupiterEngineExecutionContext.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public JupiterEngineExecutionContext
private JupiterEngineExecutionContext.State
public JupiterEngineExecutionContext.Builder
public JupiterEngineExecutionContext.Builder
public JupiterEngineExecutionContext.Builder
public JupiterEngineExecutionContext.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newStateback to summary
private @Nullable JupiterEngineExecutionContext.State newState
originalStateback to summary
private JupiterEngineExecutionContext.State originalState

Constructor Detail

Builderback to summary
private Builder(JupiterEngineExecutionContext.State originalState)

Method Detail

buildback to summary
public JupiterEngineExecutionContext build()
newStateback to summary
private JupiterEngineExecutionContext.State newState()
withExtensionContextback to summary
public JupiterEngineExecutionContext.Builder withExtensionContext(ExtensionContext extensionContext)
withExtensionRegistryback to summary
public JupiterEngineExecutionContext.Builder withExtensionRegistry(MutableExtensionRegistry extensionRegistry)
withTestInstancesProviderback to summary
public JupiterEngineExecutionContext.Builder withTestInstancesProvider(TestInstancesProvider testInstancesProvider)
withThrowableCollectorback to summary
public JupiterEngineExecutionContext.Builder withThrowableCollector(ThrowableCollector throwableCollector)
org.junit.jupiter.engine.execution back to summary

private final Class JupiterEngineExecutionContext.State

extends Object
implements Cloneable
Class Inheritance
  • java.lang.Object
  • org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.State
All Implemented Interfaces
java.lang.Cloneable

Field Summary

Modifier and TypeField and Description
pack-priv final JupiterConfiguration
pack-priv final EngineExecutionListener
pack-priv @Nullable ExtensionContext
pack-priv @Nullable MutableExtensionRegistry
pack-priv final LauncherStoreFacade
pack-priv @Nullable TestInstancesProvider
pack-priv @Nullable ThrowableCollector

Constructor Summary

AccessConstructor and Description
pack-priv
State(EngineExecutionListener executionListener, JupiterConfiguration configuration, LauncherStoreFacade launcherStoreFacade)

Method Summary

Modifier and TypeMethod and Description
public JupiterEngineExecutionContext.State
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configurationback to summary
pack-priv final JupiterConfiguration configuration
executionListenerback to summary
pack-priv final EngineExecutionListener executionListener
extensionContextback to summary
pack-priv @Nullable ExtensionContext extensionContext
extensionRegistryback to summary
pack-priv @Nullable MutableExtensionRegistry extensionRegistry
launcherStoreFacadeback to summary
pack-priv final LauncherStoreFacade launcherStoreFacade
testInstancesProviderback to summary
pack-priv @Nullable TestInstancesProvider testInstancesProvider
throwableCollectorback to summary
pack-priv @Nullable ThrowableCollector throwableCollector

Constructor Detail

Stateback to summary
pack-priv State(EngineExecutionListener executionListener, JupiterConfiguration configuration, LauncherStoreFacade launcherStoreFacade)

Method Detail

cloneback to summary
public JupiterEngineExecutionContext.State clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Annotations
@Override