public interface IHookable extends ITestNGListener
public void run(final IHookCallBack icb, ITestResult testResult) { // Preferably initialized in a @Configuration method mySubject = authenticateWithJAAs(); Subject.doAs(mySubject, new PrivilegedExceptionAction() { public Object run() { icb.callback(testResult); } }; }
Modifier and Type | Method and Description |
---|---|
void |
run(IHookCallBack callBack,
ITestResult testResult) |
void run(IHookCallBack callBack, ITestResult testResult)
Copyright © 2015. All rights reserved.