01: package org.testng;
02:
03: /**
04: * A parameter of this type will be passed to the run() method of a IHookable.
05: * Invoking runTestMethod() on that parameter will cause the test method currently
06: * being diverted to be invoked.
07: *
08: * <p>
09: *
10: * <b>This interface is not meant to be implemented by clients, only by TestNG.</b>
11: *
12: * @see org.testng.IHookable
13: *
14: *
15: * @author cbeust
16: * @date Jan 28, 2006
17: */
18: public interface IHookCallBack {
19:
20: /**
21: * Invoke the test method currently being hijacked.
22: */
23: public void runTestMethod(ITestResult testResult);
24: }
|