Class ConsoleTestExecutionListener

java.lang.Object
org.antublue.test.engine.internal.ConsoleTestExecutionListener
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

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

    Constructors
    Constructor
    Description
    ConsoleTestExecutionListener(org.junit.platform.engine.ConfigurationParameters configurationParameters)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
    Method to indicate execution of a TestPlan as finished
    void
    executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)
     
    void
    executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
    Method to indicate execution of a TestIdentifier as started
    boolean
    Method to check if the test execution listener captured any errors
    void
    testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
    Method to indicate execution of a TestPlan as finished
    void
    testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
    Method to indicate execution of a TestPlan as started

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

    dynamicTestRegistered, reportingEntryPublished
  • Constructor Details

    • ConsoleTestExecutionListener

      public ConsoleTestExecutionListener(org.junit.platform.engine.ConfigurationParameters configurationParameters)
      Constructor
      Parameters:
      configurationParameters - configurationParameters
  • 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:
      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