Class UniformInterfaceExceptionTestListener
- java.lang.Object
-
- com.atlassian.bamboo.testutils.testng.UniformInterfaceExceptionTestListener
-
- All Implemented Interfaces:
org.testng.ITestListener
,org.testng.ITestNGListener
public class UniformInterfaceExceptionTestListener extends Object implements org.testng.ITestListener
This listener acts if test failed with UniformInterfaceException. In such case it wraps the exception with the one that also lists the full response from the server. I just couldn't find easier way of covering all backdoor methods with this code.
-
-
Constructor Summary
Constructors Constructor Description UniformInterfaceExceptionTestListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFinish(org.testng.ITestContext context)
void
onStart(org.testng.ITestContext context)
void
onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
void
onTestFailure(org.testng.ITestResult result)
void
onTestSkipped(org.testng.ITestResult result)
void
onTestStart(org.testng.ITestResult result)
void
onTestSuccess(org.testng.ITestResult result)
-
-
-
Method Detail
-
onTestStart
public void onTestStart(org.testng.ITestResult result)
- Specified by:
onTestStart
in interfaceorg.testng.ITestListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult result)
- Specified by:
onTestSuccess
in interfaceorg.testng.ITestListener
-
onTestFailure
public void onTestFailure(org.testng.ITestResult result)
- Specified by:
onTestFailure
in interfaceorg.testng.ITestListener
-
onTestSkipped
public void onTestSkipped(org.testng.ITestResult result)
- Specified by:
onTestSkipped
in interfaceorg.testng.ITestListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
- Specified by:
onTestFailedButWithinSuccessPercentage
in interfaceorg.testng.ITestListener
-
onStart
public void onStart(org.testng.ITestContext context)
- Specified by:
onStart
in interfaceorg.testng.ITestListener
-
onFinish
public void onFinish(org.testng.ITestContext context)
- Specified by:
onFinish
in interfaceorg.testng.ITestListener
-
-