Class FailFastListener

java.lang.Object
org.apache.maven.surefire.testng.utils.FailFastListener
All Implemented Interfaces:
org.testng.ITestListener, org.testng.ITestNGListener

public class FailFastListener extends Object implements org.testng.ITestListener
Sends an even in FailFastEventsSingleton that failure has appeared.
Since:
2.19
  • Field Details

    • stoppable

      private final Stoppable stoppable
  • Constructor Details

    • FailFastListener

      public FailFastListener(Stoppable stoppable)
  • Method Details

    • onTestStart

      public void onTestStart(org.testng.ITestResult result)
      Specified by:
      onTestStart in interface org.testng.ITestListener
    • onTestSuccess

      public void onTestSuccess(org.testng.ITestResult result)
      Specified by:
      onTestSuccess in interface org.testng.ITestListener
    • onTestFailure

      public void onTestFailure(org.testng.ITestResult result)
      Specified by:
      onTestFailure in interface org.testng.ITestListener
    • onTestSkipped

      public void onTestSkipped(org.testng.ITestResult result)
      Specified by:
      onTestSkipped in interface org.testng.ITestListener
    • onTestFailedButWithinSuccessPercentage

      public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
      Specified by:
      onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
    • onStart

      public void onStart(org.testng.ITestContext context)
      Specified by:
      onStart in interface org.testng.ITestListener
    • onFinish

      public void onFinish(org.testng.ITestContext context)
      Specified by:
      onFinish in interface org.testng.ITestListener