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
-
-
Field Summary
Fields Modifier and Type Field Description private longm_dateprivate java.lang.Objectm_instanceprivate ITestNGMethodm_testMethodprivate ITestResultm_testResult
-
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 longgetDate()ITestNGMethodgetTestMethod()ITestResultgetTestResult()booleanisConfigurationMethod()booleanisTestMethod()java.lang.StringtoString()
-
-
-
Field Detail
-
m_instance
private final java.lang.Object m_instance
-
m_testMethod
private final ITestNGMethod m_testMethod
-
m_date
private final long m_date
-
m_testResult
private final ITestResult m_testResult
-
-
Constructor Detail
-
InvokedMethod
public InvokedMethod(java.lang.Object instance, ITestNGMethod method, long date, ITestResult testResult)
-
-
Method Detail
-
isTestMethod
public boolean isTestMethod()
- Specified by:
isTestMethodin interfaceIInvokedMethod- Returns:
- true if this method is a test method
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isConfigurationMethod
public boolean isConfigurationMethod()
- Specified by:
isConfigurationMethodin interfaceIInvokedMethod- Returns:
- true if this method is a configuration method (@BeforeXXX or @AfterXXX)
-
getTestMethod
public ITestNGMethod getTestMethod()
- Specified by:
getTestMethodin interfaceIInvokedMethod- Returns:
- the test method
-
getDate
public long getDate()
- Specified by:
getDatein interfaceIInvokedMethod- Returns:
- the date when this method was run
-
getTestResult
public ITestResult getTestResult()
- Specified by:
getTestResultin interfaceIInvokedMethod
-
-