Class BMNGListener
java.lang.Object
org.jboss.byteman.contrib.bmunit.BMNGAbstractRunner
org.jboss.byteman.contrib.bmunit.BMNGListener
- All Implemented Interfaces:
org.testng.IHookable, org.testng.IInvokedMethodListener, org.testng.ITestListener, org.testng.ITestNGListener
public class BMNGListener
extends BMNGAbstractRunner
implements org.testng.IInvokedMethodListener, org.testng.ITestListener
Class which provides the ability to load Byteman rules into TestNG style tests.
A class which inherits from this class will inherit the ability to have BMScript and BMRule
annotations processed during testing.
-
Field Summary
Fields inherited from class BMNGAbstractRunner
classConfigAnnotation, classMultiRuleAnnotation, classMultiScriptAnnotation, classSingleRuleAnnotation, classSingleScriptAnnotation, currentClazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) voidbeforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) private booleancheckBMNGListener(Class<?> clazz) 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) Methods inherited from class BMNGAbstractRunner
bmngAfterClass, bmngAfterTest, bmngBeforeClass, bmngBeforeTest, run, switchClassMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.IInvokedMethodListener
afterInvocation, beforeInvocationMethods inherited from interface org.testng.ITestListener
onTestFailedWithTimeout
-
Constructor Details
-
BMNGListener
public BMNGListener()
-
-
Method Details
-
checkBMNGListener
-
beforeInvocation
public void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) - Specified by:
beforeInvocationin interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) - Specified by:
afterInvocationin interfaceorg.testng.IInvokedMethodListener
-
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
-