Class ConfigurationMethod
java.lang.Object
org.testng.internal.BaseTestMethod
org.testng.internal.ConfigurationMethod
- All Implemented Interfaces:
Cloneable, IInstanceIdentity, IInvocationStatus, ITestNGMethod
-
Field Summary
Fields inherited from class BaseTestMethod
m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_objectFactory, m_testClass -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationMethod(ITestObjectFactory objectFactory, ConstructorOrMethod com, IAnnotationFinder annotationFinder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, boolean isIgnoreFailure, String[] beforeGroups, String[] afterGroups, XmlTest xmlTest, IObject.IdentifiableObject instance) -
Method Summary
Modifier and TypeMethodDescriptionclone()static List<ITestNGMethod> createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance) static ITestNGMethod[]createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance) static List<ITestNGMethod> createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance) static List<ITestNGMethod> createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance) static List<ITestNGMethod> createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance) static List<ITestNGMethod> createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance) String[]booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanMethods inherited from class BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, downstreamDependencies, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getId, getInstance, getInstanceHashCodes, getInstanceId, 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, setDownstreamDependencies, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setInvokedAt, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setUpstreamDependencies, setXmlTest, skipFailedInvocations, toString, upstreamDependenciesMethods inherited from interface ITestNGMethod
getAttributes, getDataProviderMethod, isDataDriven
-
Constructor Details
-
ConfigurationMethod
public ConfigurationMethod(ITestObjectFactory objectFactory, ConstructorOrMethod com, IAnnotationFinder annotationFinder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, boolean isIgnoreFailure, String[] beforeGroups, String[] afterGroups, XmlTest xmlTest, IObject.IdentifiableObject instance)
-
-
Method Details
-
getFactoryMethodParamsInfo
- Specified by:
getFactoryMethodParamsInfoin interfaceITestNGMethod- Overrides:
getFactoryMethodParamsInfoin classBaseTestMethod- Returns:
- - A
IParameterInfoobject that represents details about the parameters associated with the factory method.
-
createSuiteConfigurationMethods
public static List<ITestNGMethod> createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance) -
createTestConfigurationMethods
public static List<ITestNGMethod> createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance) -
createClassConfigurationMethods
public static List<ITestNGMethod> createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance) -
createBeforeConfigurationMethods
public static ITestNGMethod[] createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance) -
createAfterConfigurationMethods
public static List<ITestNGMethod> createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance) -
createTestMethodConfigurationMethods
public static List<ITestNGMethod> createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance) -
isAfterClassConfiguration
public boolean isAfterClassConfiguration()Description copied from class:BaseTestMethod- Specified by:
isAfterClassConfigurationin interfaceITestNGMethod- Overrides:
isAfterClassConfigurationin classBaseTestMethod- Returns:
- Returns the isAfterClassConfiguration.
-
isAfterMethodConfiguration
public boolean isAfterMethodConfiguration()Description copied from class:BaseTestMethod- Specified by:
isAfterMethodConfigurationin interfaceITestNGMethod- Overrides:
isAfterMethodConfigurationin classBaseTestMethod- Returns:
- Returns the isAfterMethodConfiguration.
-
isBeforeClassConfiguration
public boolean isBeforeClassConfiguration()Description copied from class:BaseTestMethod- Specified by:
isBeforeClassConfigurationin interfaceITestNGMethod- Overrides:
isBeforeClassConfigurationin classBaseTestMethod- Returns:
- Returns the isBeforeClassConfiguration.
-
isBeforeMethodConfiguration
public boolean isBeforeMethodConfiguration()Description copied from class:BaseTestMethod- Specified by:
isBeforeMethodConfigurationin interfaceITestNGMethod- Overrides:
isBeforeMethodConfigurationin classBaseTestMethod- Returns:
- Returns the isBeforeMethodConfiguration.
-
isAfterSuiteConfiguration
public boolean isAfterSuiteConfiguration()Description copied from class:BaseTestMethod- Specified by:
isAfterSuiteConfigurationin interfaceITestNGMethod- Overrides:
isAfterSuiteConfigurationin classBaseTestMethod- Returns:
- Returns the isAfterSuiteConfiguration.
-
isBeforeSuiteConfiguration
public boolean isBeforeSuiteConfiguration()Description copied from class:BaseTestMethod- Specified by:
isBeforeSuiteConfigurationin interfaceITestNGMethod- Overrides:
isBeforeSuiteConfigurationin classBaseTestMethod- Returns:
- Returns the isBeforeSuiteConfiguration.
-
isBeforeTestConfiguration
public boolean isBeforeTestConfiguration()Description copied from class:BaseTestMethod- Specified by:
isBeforeTestConfigurationin interfaceITestNGMethod- Overrides:
isBeforeTestConfigurationin classBaseTestMethod- Returns:
trueif this method is a @BeforeTest (@Configuration beforeTest=true)
-
isAfterTestConfiguration
public boolean isAfterTestConfiguration()Description copied from class:BaseTestMethod- Specified by:
isAfterTestConfigurationin interfaceITestNGMethod- Overrides:
isAfterTestConfigurationin classBaseTestMethod- Returns:
trueif this method is an @AfterTest (@Configuration afterTest=true)
-
isBeforeGroupsConfiguration
public boolean isBeforeGroupsConfiguration()Description copied from class:BaseTestMethod- Specified by:
isBeforeGroupsConfigurationin interfaceITestNGMethod- Overrides:
isBeforeGroupsConfigurationin classBaseTestMethod
-
hasBeforeGroupsConfiguration
public boolean hasBeforeGroupsConfiguration() -
hasAfterGroupsConfiguration
public boolean hasAfterGroupsConfiguration() -
isAfterGroupsConfiguration
public boolean isAfterGroupsConfiguration()Description copied from class:BaseTestMethod- Specified by:
isAfterGroupsConfigurationin interfaceITestNGMethod- Overrides:
isAfterGroupsConfigurationin classBaseTestMethod
-
isIgnoreFailure
public boolean isIgnoreFailure()- Returns:
- -
trueif the configuration failure arising out of this method should be ignored.
-
clone
- Specified by:
clonein interfaceITestNGMethod- Specified by:
clonein classBaseTestMethod
-
isFirstTimeOnly
public boolean isFirstTimeOnly() -
isLastTimeOnly
public boolean isLastTimeOnly() -
getGroupFilters
-