Top Description Constructors Methods
org.junit.platform.suite.engine

public final Class SuiteTestEngine

extends Object
implements TestEngine
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.TestEngine
Annotations
@API
status:INTERNAL
since:1.8
Static Imports
org.apiguardian.api.API.Status.INTERNAL

The JUnit Platform Suite TestEngine.
Since
1.8

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TestDescriptor
discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)

Implements org.junit.platform.engine.TestEngine.discover.

Discover tests according to the supplied EngineDiscoveryRequest.

public void
execute(ExecutionRequest request)

Implements org.junit.platform.engine.TestEngine.execute.

Execute tests according to the supplied ExecutionRequest.

public Optional<String>
getArtifactId()

Overrides default org.junit.platform.engine.TestEngine.getArtifactId.

Returns junit-platform-suite-engine as the artifact ID.

public Optional<String>
getGroupId()

Overrides default org.junit.platform.engine.TestEngine.getGroupId.

Returns org.junit.platform as the group ID.

public String
getId()

Implements org.junit.platform.engine.TestEngine.getId.

Get the ID that uniquely identifies this test engine.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SuiteTestEngineback to summary
public SuiteTestEngine()

Method Detail

discoverback to summary
public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)

Implements org.junit.platform.engine.TestEngine.discover.

Doc from org.junit.platform.engine.TestEngine.discover.

Discover tests according to the supplied EngineDiscoveryRequest.

The supplied UniqueId must be used as the unique ID of the returned root TestDescriptor. In addition, the UniqueId must be used to create unique IDs for children of the root's descriptor by calling UniqueId#append.

Furthermore, implementations must publish events about test discovery via the supplied EngineDiscoveryListener.

Annotations
@Override
executeback to summary
public void execute(ExecutionRequest request)

Implements org.junit.platform.engine.TestEngine.execute.

Doc from org.junit.platform.engine.TestEngine.execute.

Execute tests according to the supplied ExecutionRequest.

The request passed to this method contains the root TestDescriptor that was previously returned by discover, the EngineExecutionListener to be notified of test execution events, and ConfigurationParameters that may influence test execution.

Annotations
@Override
getArtifactIdback to summary
public Optional<String> getArtifactId()

Overrides default org.junit.platform.engine.TestEngine.getArtifactId.

Returns junit-platform-suite-engine as the artifact ID.

Annotations
@Override
getGroupIdback to summary
public Optional<String> getGroupId()

Overrides default org.junit.platform.engine.TestEngine.getGroupId.

Returns org.junit.platform as the group ID.

Annotations
@Override
getIdback to summary
public String getId()

Implements org.junit.platform.engine.TestEngine.getId.

Doc from org.junit.platform.engine.TestEngine.getId.

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 "junit-vintage" and "junit-jupiter", respectively. When in doubt, you may use the fully qualified name of your custom TestEngine implementation class.

Annotations
@Override