org.testng.internal
Class ConfigurationMethod
java.lang.Object
org.testng.internal.BaseTestMethod
org.testng.internal.ConfigurationMethod
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, ITestNGMethod
public class ConfigurationMethod
- extends BaseTestMethod
- See Also:
- Serialized Form
| Fields inherited from class org.testng.internal.BaseTestMethod |
DATE_COMPARATOR, m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_testClass |
|
Constructor Summary |
ConfigurationMethod(java.lang.reflect.Method method,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups)
|
|
Method Summary |
ConfigurationMethod |
clone()
|
static ITestNGMethod[] |
createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
|
static ITestNGMethod[] |
createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
|
static ITestNGMethod[] |
createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
|
static ITestNGMethod[] |
createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
|
static ITestNGMethod[] |
createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
|
static ITestNGMethod[] |
createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
|
boolean |
isAfterClassConfiguration()
|
boolean |
isAfterGroupsConfiguration()
|
boolean |
isAfterMethodConfiguration()
|
boolean |
isAfterSuiteConfiguration()
|
boolean |
isAfterTestConfiguration()
|
boolean |
isBeforeClassConfiguration()
|
boolean |
isBeforeGroupsConfiguration()
|
boolean |
isBeforeMethodConfiguration()
|
boolean |
isBeforeSuiteConfiguration()
|
boolean |
isBeforeTestConfiguration()
|
boolean |
isFirstTimeOnly()
|
boolean |
isLastTimeOnly()
|
| Methods inherited from class org.testng.internal.BaseTestMethod |
addMethodDependedUpon, canRunFromClass, compareTo, equals, getAfterGroups, getAnnotationFinder, getBeforeGroups, getCurrentInvocationCount, getDate, getDescription, getGroups, getGroupsDependedUpon, getIClass, getId, getInstanceHashCodes, getInstances, getInvocationCount, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getRealClass, getRetryAnalyzer, getSignature, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, hashCode, incrementCurrentInvocationCount, initGroups, isAlwaysRun, isTest, setAlwaysRun, setDate, setDescription, setGroups, setGroupsDependedUpon, setId, setInvocationCount, setMethodsDependedUpon, setMissingGroup, setParameterInvocationCount, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setThreadPoolSize, skipFailedInvocations, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ConfigurationMethod
public ConfigurationMethod(java.lang.reflect.Method method,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups)
createSuiteConfigurationMethods
public static ITestNGMethod[] createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
createTestConfigurationMethods
public static ITestNGMethod[] createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
createClassConfigurationMethods
public static ITestNGMethod[] createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
createBeforeConfigurationMethods
public static ITestNGMethod[] createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
createAfterConfigurationMethods
public static ITestNGMethod[] createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
createTestMethodConfigurationMethods
public static ITestNGMethod[] createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore)
isAfterClassConfiguration
public boolean isAfterClassConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isAfterClassConfiguration in interface ITestNGMethod- Overrides:
isAfterClassConfiguration in class BaseTestMethod
- Returns:
- Returns the isAfterClassConfiguration.
isAfterMethodConfiguration
public boolean isAfterMethodConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isAfterMethodConfiguration in interface ITestNGMethod- Overrides:
isAfterMethodConfiguration in class BaseTestMethod
- Returns:
- Returns the isAfterMethodConfiguration.
isBeforeClassConfiguration
public boolean isBeforeClassConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isBeforeClassConfiguration in interface ITestNGMethod- Overrides:
isBeforeClassConfiguration in class BaseTestMethod
- Returns:
- Returns the isBeforeClassConfiguration.
isBeforeMethodConfiguration
public boolean isBeforeMethodConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isBeforeMethodConfiguration in interface ITestNGMethod- Overrides:
isBeforeMethodConfiguration in class BaseTestMethod
- Returns:
- Returns the isBeforeMethodConfiguration.
isAfterSuiteConfiguration
public boolean isAfterSuiteConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isAfterSuiteConfiguration in interface ITestNGMethod- Overrides:
isAfterSuiteConfiguration in class BaseTestMethod
- Returns:
- Returns the isAfterSuiteConfiguration.
isBeforeSuiteConfiguration
public boolean isBeforeSuiteConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isBeforeSuiteConfiguration in interface ITestNGMethod- Overrides:
isBeforeSuiteConfiguration in class BaseTestMethod
- Returns:
- Returns the isBeforeSuiteConfiguration.
isBeforeTestConfiguration
public boolean isBeforeTestConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isBeforeTestConfiguration in interface ITestNGMethod- Overrides:
isBeforeTestConfiguration in class BaseTestMethod
- Returns:
- true if this method is a @BeforeTest (@Configuration beforeTest=true)
isAfterTestConfiguration
public boolean isAfterTestConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isAfterTestConfiguration in interface ITestNGMethod- Overrides:
isAfterTestConfiguration in class BaseTestMethod
- Returns:
- true if this method is an @AfterTest (@Configuration afterTest=true)
isBeforeGroupsConfiguration
public boolean isBeforeGroupsConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isBeforeGroupsConfiguration in interface ITestNGMethod- Overrides:
isBeforeGroupsConfiguration in class BaseTestMethod
isAfterGroupsConfiguration
public boolean isAfterGroupsConfiguration()
- Description copied from class:
BaseTestMethod
-
- Specified by:
isAfterGroupsConfiguration in interface ITestNGMethod- Overrides:
isAfterGroupsConfiguration in class BaseTestMethod
clone
public ConfigurationMethod clone()
- Specified by:
clone in interface ITestNGMethod- Specified by:
clone in class BaseTestMethod
isFirstTimeOnly
public boolean isFirstTimeOnly()
isLastTimeOnly
public boolean isLastTimeOnly()
Copyright © 2010. All Rights Reserved.