public abstract class UnitilsTestNG
extends java.lang.Object
implements org.testng.IHookable
TestListener for
more information on the listener invocation order.| Constructor and Description |
|---|
UnitilsTestNG() |
| Modifier and Type | Method and Description |
|---|---|
protected TestListener |
getTestListener() |
protected Unitils |
getUnitils()
Returns the default singleton instance of Unitils
|
void |
run(org.testng.IHookCallBack callBack,
org.testng.ITestResult testResult)
Implementation of the hookable interface to be able to call
TestListener.beforeTestMethod(java.lang.Object, java.lang.reflect.Method) and
TestListener.afterTestMethod(java.lang.Object, java.lang.reflect.Method, java.lang.Throwable). |
protected void |
throwException(java.lang.Throwable throwable)
Throws an unchecked excepton for the given throwable.
|
protected void |
unitilsAfterTestTearDown(java.lang.reflect.Method testMethod)
Called after all test tear down.
|
protected void |
unitilsBeforeClass()
Called before a test of a test class is run.
|
protected void |
unitilsBeforeTestSetUp(java.lang.reflect.Method testMethod)
Called before all test setup.
|
protected void unitilsBeforeClass()
TestListener.afterCreateTestObject(Object) is called.protected void unitilsBeforeTestSetUp(java.lang.reflect.Method testMethod)
TestListener.beforeTestSetUp(java.lang.Object, java.lang.reflect.Method) is called.testMethod - The test method, not nullprotected void unitilsAfterTestTearDown(java.lang.reflect.Method testMethod)
TestListener.afterTestTearDown(java.lang.Object, java.lang.reflect.Method) is called.
NOTE: alwaysRun is enabled to be sure that this method is called even when an exception occurs during
unitilsBeforeTestSetUp(java.lang.reflect.Method).testMethod - The test method, not nullpublic void run(org.testng.IHookCallBack callBack,
org.testng.ITestResult testResult)
TestListener.beforeTestMethod(java.lang.Object, java.lang.reflect.Method) and
TestListener.afterTestMethod(java.lang.Object, java.lang.reflect.Method, java.lang.Throwable).run in interface org.testng.IHookablecallBack - the TestNG test callback, not nulltestResult - the TestNG test result, not nullprotected void throwException(java.lang.Throwable throwable)
throwable - The throwable, not nullprotected TestListener getTestListener()
protected Unitils getUnitils()
Copyright © 2016. All Rights Reserved.