TestEngine@API(status=INTERNAL, since="4.12") public final class VintageTestEngine extends java.lang.Object implements TestEngine
TestEngine.| Constructor | Description |
|---|---|
VintageTestEngine() |
| Modifier and Type | Method | 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.util.Optional<java.lang.String> |
getArtifactId() |
Returns
junit-vintage-engine as the artifact ID. |
java.util.Optional<java.lang.String> |
getGroupId() |
Returns
org.junit.vintage as the group ID. |
java.lang.String |
getId() |
Get the ID that uniquely identifies this test engine.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersionpublic java.lang.String getId()
TestEngineEach 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.
getId in interface TestEnginepublic java.util.Optional<java.lang.String> getGroupId()
org.junit.vintage as the group ID.getGroupId in interface TestEngineOptional containing the group ID; never null
but potentially empty if the group ID is unknownTestEngine.getArtifactId(),
TestEngine.getVersion()public java.util.Optional<java.lang.String> getArtifactId()
junit-vintage-engine as the artifact ID.getArtifactId in interface TestEngineOptional containing the artifact ID; never
null but potentially empty if the artifact ID is unknownClass.getPackage(),
Package.getImplementationTitle(),
TestEngine.getGroupId(),
TestEngine.getVersion()public 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 request; never nulluniqueId - the unique ID to be used for this test engine's
TestDescriptor; never nullTestDescriptor 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; never null