@API(value=Experimental) public class VintageTestEngine extends java.lang.Object implements TestEngine
| Constructor and Description |
|---|
VintageTestEngine() |
| Modifier and Type | Method and Description |
|---|---|
TestDescriptor |
discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId)
Discover tests according to the supplied
EngineDiscoveryRequest. |
void |
execute(ExecutionRequest request)
Execute tests according to the supplied
ExecutionRequest. |
java.lang.String |
getId()
Get the ID that uniquely identifies this test engine.
|
public java.lang.String getId()
TestEngineEach test engine must provide a unique ID. JUnit Vintage and Jupiter
use "junit-vintage" and "junit-jupiter", respectively.
When in doubt, you may use the fully qualified name of your custom
TestEngine implementation class.
getId in interface TestEnginepublic TestDescriptor discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)
TestEngineEngineDiscoveryRequest.
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(java.lang.String, java.lang.String).
discover in interface TestEnginediscoveryRequest - the discovery requestuniqueId - the unique ID to be used for this test engine's
TestDescriptorTestDescriptor of this engine, typically an
instance of EngineDescriptorEngineDescriptorpublic void execute(ExecutionRequest request)
TestEngineExecutionRequest.
The request passed to this method contains the root
TestDescriptor that was previously returned by TestEngine.discover(org.junit.platform.engine.EngineDiscoveryRequest, org.junit.platform.engine.UniqueId),
the EngineExecutionListener to be notified of test execution
events, and ConfigurationParameters that may influence test execution.
execute in interface TestEnginerequest - the request to execute tests for