Package org.antublue.test.engine
Class TestEngine
- java.lang.Object
-
- org.antublue.test.engine.TestEngine
-
- All Implemented Interfaces:
org.junit.platform.engine.TestEngine
public class TestEngine extends Object implements org.junit.platform.engine.TestEngine
Class to implement the AntuBLUE Test Engine
-
-
Constructor Summary
Constructors Constructor Description TestEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.platform.engine.TestDescriptordiscover(org.junit.platform.engine.EngineDiscoveryRequest engineDiscoveryRequest, org.junit.platform.engine.UniqueId uniqueId)Method to discover test classesvoidexecute(org.junit.platform.engine.ExecutionRequest executionRequest)Method to execute an ExecutionRequestOptional<String>getArtifactId()Method to get the test engine artifact idOptional<String>getGroupId()Method to get the test engine group idStringgetId()Method to get the test engine idOptional<String>getVersion()Method to get the test engine version
-
-
-
Field Detail
-
ENGINE_ID
public static final String ENGINE_ID
Configuration constant- See Also:
- Constant Field Values
-
GROUP_ID
public static final String GROUP_ID
Configuration constant- See Also:
- Constant Field Values
-
ARTIFACT_ID
public static final String ARTIFACT_ID
Configuration constant- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
Configuration constant
-
-
Method Detail
-
getId
public String getId()
Method to get the test engine id- Specified by:
getIdin interfaceorg.junit.platform.engine.TestEngine- Returns:
- the return value
-
getGroupId
public Optional<String> getGroupId()
Method to get the test engine group id- Specified by:
getGroupIdin interfaceorg.junit.platform.engine.TestEngine- Returns:
- the return value
-
getArtifactId
public Optional<String> getArtifactId()
Method to get the test engine artifact id- Specified by:
getArtifactIdin interfaceorg.junit.platform.engine.TestEngine- Returns:
- the return value
-
getVersion
public Optional<String> getVersion()
Method to get the test engine version- Specified by:
getVersionin interfaceorg.junit.platform.engine.TestEngine- Returns:
- the return value
-
discover
public org.junit.platform.engine.TestDescriptor discover(org.junit.platform.engine.EngineDiscoveryRequest engineDiscoveryRequest, org.junit.platform.engine.UniqueId uniqueId)Method to discover test classes- Specified by:
discoverin interfaceorg.junit.platform.engine.TestEngine- Parameters:
engineDiscoveryRequest- engineDiscoveryRequestuniqueId- uniqueId- Returns:
- the return value
-
execute
public void execute(org.junit.platform.engine.ExecutionRequest executionRequest)
Method to execute an ExecutionRequest- Specified by:
executein interfaceorg.junit.platform.engine.TestEngine- Parameters:
executionRequest- executionRequest
-
-