Package org.jboss.byteman.contrib.bmunit
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 org.jboss.byteman.contrib.bmunit.BMNGAbstractRunner
classConfigAnnotation, classMultiRuleAnnotation, classMultiScriptAnnotation, classSingleRuleAnnotation, classSingleScriptAnnotation, currentClazz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterInvocation
(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) void
beforeInvocation
(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) private boolean
checkBMNGListener
(Class<?> clazz) 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) Methods inherited from class org.jboss.byteman.contrib.bmunit.BMNGAbstractRunner
bmngAfterClass, bmngAfterTest, bmngBeforeClass, bmngBeforeTest, run, switchClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.IInvokedMethodListener
afterInvocation, beforeInvocation
Methods 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:
beforeInvocation
in interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult) - Specified by:
afterInvocation
in interfaceorg.testng.IInvokedMethodListener
-
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
-