Package org.testng.internal
Class ConfigurationMethod
java.lang.Object
org.testng.internal.BaseTestMethod
org.testng.internal.ConfigurationMethod
- All Implemented Interfaces:
Cloneable
,IInvocationStatus
,ITestNGMethod
-
Field Summary
Fields inherited from class org.testng.internal.BaseTestMethod
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
ConstructorsConstructorDescriptionConfigurationMethod
(ConstructorOrMethod com, IAnnotationFinder annotationFinder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, String[] beforeGroups, String[] afterGroups, Object instance) -
Method Summary
Modifier and TypeMethodDescriptionclone()
static ITestNGMethod[]
createAfterConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
createBeforeConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
createClassConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
createSuiteConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
createTestConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
createTestMethodConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) String[]
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Methods inherited from class org.testng.internal.BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFactoryMethodParamsInfo, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInterceptedPriority, getInvocationCount, getInvocationNumbers, getInvocationTime, getInvocationTimeOut, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getParameterTypes, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, getRetryAnalyzerClass, getSignature, getSimpleName, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, initGroups, isAlwaysRun, isTest, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setInvokedAt, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.testng.ITestNGMethod
getAttributes, getDataProviderMethod, isDataDriven
-
Constructor Details
-
ConfigurationMethod
public ConfigurationMethod(ConstructorOrMethod com, IAnnotationFinder annotationFinder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, String[] beforeGroups, String[] afterGroups, Object instance)
-
-
Method Details
-
createSuiteConfigurationMethods
public static ITestNGMethod[] createSuiteConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) -
createTestConfigurationMethods
public static ITestNGMethod[] createTestConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) -
createClassConfigurationMethods
public static ITestNGMethod[] createClassConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) -
createBeforeConfigurationMethods
public static ITestNGMethod[] createBeforeConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) -
createAfterConfigurationMethods
public static ITestNGMethod[] createAfterConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) -
createTestMethodConfigurationMethods
public static ITestNGMethod[] createTestMethodConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) -
isAfterClassConfiguration
public boolean isAfterClassConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isAfterClassConfiguration
in interfaceITestNGMethod
- Overrides:
isAfterClassConfiguration
in classBaseTestMethod
- Returns:
- Returns the isAfterClassConfiguration.
-
isAfterMethodConfiguration
public boolean isAfterMethodConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isAfterMethodConfiguration
in interfaceITestNGMethod
- Overrides:
isAfterMethodConfiguration
in classBaseTestMethod
- Returns:
- Returns the isAfterMethodConfiguration.
-
isBeforeClassConfiguration
public boolean isBeforeClassConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isBeforeClassConfiguration
in interfaceITestNGMethod
- Overrides:
isBeforeClassConfiguration
in classBaseTestMethod
- Returns:
- Returns the isBeforeClassConfiguration.
-
isBeforeMethodConfiguration
public boolean isBeforeMethodConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isBeforeMethodConfiguration
in interfaceITestNGMethod
- Overrides:
isBeforeMethodConfiguration
in classBaseTestMethod
- Returns:
- Returns the isBeforeMethodConfiguration.
-
isAfterSuiteConfiguration
public boolean isAfterSuiteConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isAfterSuiteConfiguration
in interfaceITestNGMethod
- Overrides:
isAfterSuiteConfiguration
in classBaseTestMethod
- Returns:
- Returns the isAfterSuiteConfiguration.
-
isBeforeSuiteConfiguration
public boolean isBeforeSuiteConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isBeforeSuiteConfiguration
in interfaceITestNGMethod
- Overrides:
isBeforeSuiteConfiguration
in classBaseTestMethod
- Returns:
- Returns the isBeforeSuiteConfiguration.
-
isBeforeTestConfiguration
public boolean isBeforeTestConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isBeforeTestConfiguration
in interfaceITestNGMethod
- Overrides:
isBeforeTestConfiguration
in classBaseTestMethod
- Returns:
true
if this method is a @BeforeTest (@Configuration beforeTest=true)
-
isAfterTestConfiguration
public boolean isAfterTestConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isAfterTestConfiguration
in interfaceITestNGMethod
- Overrides:
isAfterTestConfiguration
in classBaseTestMethod
- Returns:
true
if this method is an @AfterTest (@Configuration afterTest=true)
-
isBeforeGroupsConfiguration
public boolean isBeforeGroupsConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isBeforeGroupsConfiguration
in interfaceITestNGMethod
- Overrides:
isBeforeGroupsConfiguration
in classBaseTestMethod
-
hasBeforeGroupsConfiguration
public boolean hasBeforeGroupsConfiguration() -
hasAfterGroupsConfiguration
public boolean hasAfterGroupsConfiguration() -
isAfterGroupsConfiguration
public boolean isAfterGroupsConfiguration()Description copied from class:BaseTestMethod
- Specified by:
isAfterGroupsConfiguration
in interfaceITestNGMethod
- Overrides:
isAfterGroupsConfiguration
in classBaseTestMethod
-
clone
- Specified by:
clone
in interfaceITestNGMethod
- Specified by:
clone
in classBaseTestMethod
-
isFirstTimeOnly
public boolean isFirstTimeOnly() -
isLastTimeOnly
public boolean isLastTimeOnly() -
getGroupFilters
-