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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutionFinished(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 startedbooleanMethod 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 startedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.launcher.TestExecutionListener
dynamicTestRegistered, reportingEntryPublished
-
Constructor Details
-
TestEngineConsoleTestExecutionListener
public TestEngineConsoleTestExecutionListener()Constructor
-
-
Method Details
-
hasFailures
public boolean hasFailures()Method to check if the test execution listener captured any errors- Returns:
- the return value
-
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
-