1 package org.testng;
2 
3 /**
4  * An interface representing a method that has been invoked by TestNG.
5  *
6  * This interface is internal.
7  */
8 public interface IInvokedMethod {
9 
10   /**
11    * @return true if this method is a test method
12    */
isTestMethod()13   public abstract boolean isTestMethod();
14 
15   /**
16    * @return true if this method is a configuration method (@BeforeXXX or @AfterXXX)
17    */
isConfigurationMethod()18   public abstract boolean isConfigurationMethod();
19 
20   /**
21    * @return the test method
22    */
getTestMethod()23   public abstract ITestNGMethod getTestMethod();
24 
getTestResult()25   public ITestResult getTestResult();
26 
27   /**
28    * @return the date when this method was run
29    */
getDate()30   public abstract long getDate();
31 
32 }