Class TestEngineConsoleDisplayNameTestExecutionListener

  • All Implemented Interfaces:
    org.junit.platform.launcher.TestExecutionListener

    public class TestEngineConsoleDisplayNameTestExecutionListener
    extends Object
    implements org.junit.platform.launcher.TestExecutionListener
    Class to collect test information and output a test execution summary
    • Constructor Detail

      • TestEngineConsoleDisplayNameTestExecutionListener

        public TestEngineConsoleDisplayNameTestExecutionListener()
        Constructor
    • 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:
        testPlanExecutionStarted in interface org.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:
        executionStarted in interface org.junit.platform.launcher.TestExecutionListener
        Parameters:
        testIdentifier - the TestIdentifier
      • executionSkipped

        public void executionSkipped​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                     String reason)
        Specified by:
        executionSkipped in interface org.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:
        executionFinished in interface org.junit.platform.launcher.TestExecutionListener
        Parameters:
        testIdentifier - the TestIdentifier
        testExecutionResult - the TestExecutionResult
      • testPlanExecutionFinished

        public void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)
        Method to indicate execution of a TestPlan as finished
        Specified by:
        testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
        Parameters:
        testPlan - the TestPlan