public class HK2TestListenerAdapter
extends java.lang.Object
implements org.testng.IExecutionListener, org.testng.IHookable, org.testng.IConfigurable
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.Class<?>,Binder> |
binderClasses |
private static java.util.Map<java.lang.String,ServiceLocator> |
serviceLocators |
private static java.util.Map<java.lang.Class<?>,java.lang.Object> |
testClasses |
| Constructor and Description |
|---|
HK2TestListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
initializeServiceLocator(ServiceLocator locator,
HK2 hk2) |
private void |
injectTestInstance(org.testng.ITestResult testResult) |
void |
onExecutionFinish() |
void |
onExecutionStart() |
void |
run(org.testng.IConfigureCallBack callBack,
org.testng.ITestResult testResult) |
void |
run(org.testng.IHookCallBack callBack,
org.testng.ITestResult testResult) |
private static final java.util.Map<java.lang.String,ServiceLocator> serviceLocators
private static final java.util.Map<java.lang.Class<?>,java.lang.Object> testClasses
private static final java.util.Map<java.lang.Class<?>,Binder> binderClasses
public void onExecutionStart()
onExecutionStart in interface org.testng.IExecutionListenerpublic void onExecutionFinish()
onExecutionFinish in interface org.testng.IExecutionListenerpublic void run(org.testng.IHookCallBack callBack,
org.testng.ITestResult testResult)
run in interface org.testng.IHookablepublic void run(org.testng.IConfigureCallBack callBack,
org.testng.ITestResult testResult)
run in interface org.testng.IConfigurableprivate static void initializeServiceLocator(ServiceLocator locator, HK2 hk2)
private void injectTestInstance(org.testng.ITestResult testResult)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.InstantiationExceptionjava.lang.IllegalAccessException