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 java.lang.Object implements org.testng.ITestListenerSends an even inFailFastEventsSingletonthat failure has appeared.- Since:
- 2.19
-
-
Constructor Summary
Constructors Constructor Description FailFastListener(Stoppable stoppable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFinish(org.testng.ITestContext context)voidonStart(org.testng.ITestContext context)voidonTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)voidonTestFailure(org.testng.ITestResult result)voidonTestSkipped(org.testng.ITestResult result)voidonTestStart(org.testng.ITestResult result)voidonTestSuccess(org.testng.ITestResult result)
-
-
-
Field Detail
-
stoppable
private final Stoppable stoppable
-
-
Constructor Detail
-
FailFastListener
public FailFastListener(Stoppable stoppable)
-
-
Method Detail
-
onTestStart
public void onTestStart(org.testng.ITestResult result)
- Specified by:
onTestStartin interfaceorg.testng.ITestListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult result)
- Specified by:
onTestSuccessin interfaceorg.testng.ITestListener
-
onTestFailure
public void onTestFailure(org.testng.ITestResult result)
- Specified by:
onTestFailurein interfaceorg.testng.ITestListener
-
onTestSkipped
public void onTestSkipped(org.testng.ITestResult result)
- Specified by:
onTestSkippedin interfaceorg.testng.ITestListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
- Specified by:
onTestFailedButWithinSuccessPercentagein interfaceorg.testng.ITestListener
-
onStart
public void onStart(org.testng.ITestContext context)
- Specified by:
onStartin interfaceorg.testng.ITestListener
-
onFinish
public void onFinish(org.testng.ITestContext context)
- Specified by:
onFinishin interfaceorg.testng.ITestListener
-
-