Package org.testng.internal
Class InvokedMethod
- java.lang.Object
-
- org.testng.internal.InvokedMethod
-
- All Implemented Interfaces:
IInvokedMethod
public class InvokedMethod extends java.lang.Object implements IInvokedMethod
-
-
Constructor Summary
Constructors Constructor Description InvokedMethod(java.lang.Object instance, ITestNGMethod method, long date, ITestResult testResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDate()
ITestNGMethod
getTestMethod()
ITestResult
getTestResult()
boolean
isConfigurationMethod()
boolean
isTestMethod()
java.lang.String
toString()
-
-
-
Constructor Detail
-
InvokedMethod
public InvokedMethod(java.lang.Object instance, ITestNGMethod method, long date, ITestResult testResult)
-
-
Method Detail
-
isTestMethod
public boolean isTestMethod()
- Specified by:
isTestMethod
in interfaceIInvokedMethod
- Returns:
- true if this method is a test method
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isConfigurationMethod
public boolean isConfigurationMethod()
- Specified by:
isConfigurationMethod
in interfaceIInvokedMethod
- Returns:
- true if this method is a configuration method (@BeforeXXX or @AfterXXX)
-
getTestMethod
public ITestNGMethod getTestMethod()
- Specified by:
getTestMethod
in interfaceIInvokedMethod
- Returns:
- the test method
-
getDate
public long getDate()
- Specified by:
getDate
in interfaceIInvokedMethod
- Returns:
- the date when this method was run
-
getTestResult
public ITestResult getTestResult()
- Specified by:
getTestResult
in interfaceIInvokedMethod
-
-