TestEngine
.
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected JupiterEngineExecutionContext | createExecutionContext(ExecutionRequest
the request about to be executed request)Implements abstract org. |
protected HierarchicalTestExecutorService | createExecutorService(ExecutionRequest
the request about to be executed request)Overrides org. |
protected ThrowableCollector. | createThrowableCollectorFactory(ExecutionRequest
the request about to be executed request)
Create the factory for creating
ThrowableCollector instances used to handle exceptions that occur
during execution of this engine's tests.
|
public TestDescriptor | discover(EngineDiscoveryRequest
the discovery request; never discoveryRequest, UniqueId null the unique ID to be used for this test engine's
uniqueId)TestDescriptor ; never null Implements org. EngineDiscoveryRequest .
|
public Optional | getArtifactId()
Overrides default org. junit-jupiter-engine as the artifact ID.
|
public Optional | getGroupId()
Overrides default org. org.junit.jupiter as the group ID.
|
public String | getId()
Implements org. |
private JupiterConfiguration |
JupiterTestEngine | back to summary |
---|---|
public JupiterTestEngine() |
createExecutionContext | back to summary |
---|---|
protected JupiterEngineExecutionContext createExecutionContext(ExecutionRequest request) Implements abstract org. Doc from org. Create the initial execution context for executing the supplied request.
|
createExecutorService | back to summary |
---|---|
protected HierarchicalTestExecutorService createExecutorService(ExecutionRequest request) Overrides org. Doc from org. Create the executor service to use for executing the supplied request. An engine may use the information in the supplied request such as the contained configuration parameters to decide what kind of service to return or how to configure it. By default, this method returns an instance of
|
createThrowableCollectorFactory | back to summary |
---|---|
protected ThrowableCollector. Create the factory for creating
An engine may use the information in the supplied request such as the contained configuration parameters to decide what kind of factory to return or how to configure it. By default, this method returns a factory that always creates instances of
|
discover | back to summary |
---|---|
public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId) Implements org. Doc from org. Discover tests according to the supplied The supplied
|
getArtifactId | back to summary |
---|---|
public Optional Overrides default org. Returns
|
getGroupId | back to summary |
---|---|
public Optional Overrides default org. Returns
|
getId | back to summary |
---|---|
public String getId() Implements org. Doc from org. Get the ID that uniquely identifies this test engine. Each test engine must provide a unique ID. For example, JUnit Vintage
and JUnit Jupiter use
|
getJupiterConfiguration | back to summary |
---|---|
private JupiterConfiguration getJupiterConfiguration(ExecutionRequest request) |