Home | History | Annotate | Download | only in testng
      1 package org.testng;
      2 
      3 /**
      4  * A parameter of this type will be passed to the run() method of a IHookable.
      5  * Invoking runTestMethod() on that parameter will cause the test method currently
      6  * being diverted to be invoked.
      7  *
      8  *  <p>
      9  *
     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  * 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 
     25   /**
     26    * @return the parameters that will be used to invoke the test method.
     27    */
     28   public Object[] getParameters();
     29 }
     30