package org.testng;

A parameter of this type will be passed to the run() method of a IHookable. Invoking runTestMethod() on that parameter will cause the test method currently being diverted to be invoked.

This interface is not meant to be implemented by clients, only by TestNG.

Author:cbeust Jan 28, 2006
See Also:
  • IHookable
/** * A parameter of this type will be passed to the run() method of a IHookable. Invoking * runTestMethod() on that parameter will cause the test method currently being diverted to be * invoked. * * <p><b>This interface is not meant to be implemented by clients, only by TestNG.</b> * * @see org.testng.IHookable * @author cbeust Jan 28, 2006 */
public interface IHookCallBack {
Invoke the test method currently being hijacked.
Params:
  • testResult – The test result
/** * Invoke the test method currently being hijacked. * * @param testResult The test result */
void runTestMethod(ITestResult testResult);
Returns:the parameters that will be used to invoke the test method.
/** @return the parameters that will be used to invoke the test method. */
Object[] getParameters(); }