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 IConfigurable.
      5  * Invoking runConfigurationMethod() on that parameter will cause the test method currently
      6  * being diverted to be invoked.
      7  *
      8  * <b>This interface is not meant to be implemented by clients, only by TestNG.</b>
      9  *
     10  * @see org.testng.IConfigurable
     11  *
     12  * @author cbeust
     13  * Sep 07, 2010
     14  */
     15 public interface IConfigureCallBack {
     16 
     17   /**
     18    * Invoke the test method currently being hijacked.
     19    */
     20   public void runConfigurationMethod(ITestResult testResult);
     21 
     22   /**
     23    * @return the parameters that will be used to invoke the configuration method.
     24    */
     25   public Object[] getParameters();
     26 }
     27