Class TestEngineConsoleTestExecutionListener
- java.lang.Object
-
- org.antublue.test.engine.internal.TestEngineConsoleTestExecutionListener
-
- All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener
public class TestEngineConsoleTestExecutionListener extends Object implements org.junit.platform.launcher.TestExecutionListener
Class to collect test information and output a test execution summary
-
-
Constructor Summary
Constructors Constructor Description TestEngineConsoleTestExecutionListener()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)Method to indicate execution of a TestPlan as finishedvoidexecutionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)voidexecutionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)Method to indicate execution of a TestIdentifier as startedbooleanhasFailures()Method to check if the test execution listener captured any errorsvoidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)Method to indicate execution of a TestPlan as finishedvoidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)Method to indicate execution of a TestPlan as started
-
-
-
Method Detail
-
hasFailures
public boolean hasFailures()
Method to check if the test execution listener captured any errors- Returns:
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
Method to indicate execution of a TestPlan as started- Specified by:
testPlanExecutionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener- Parameters:
testPlan- the TestPlan
-
executionStarted
public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
Method to indicate execution of a TestIdentifier as started- Specified by:
executionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener- Parameters:
testIdentifier- the TestIdentifier
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)- Specified by:
executionSkippedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionFinished
public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)Method to indicate execution of a TestPlan as finished- Specified by:
executionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener- Parameters:
testIdentifier- the TestIdentifiertestExecutionResult- the TestExecutionResult
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
Method to indicate execution of a TestPlan as finished- Specified by:
testPlanExecutionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener- Parameters:
testPlan- the TestPlan
-
-