Top Fields Constructors Methods
org.testng.internal

public Class ConfigurationMethod

extends BaseTestMethod
Class Inheritance
Imports
java.lang.reflect.Modifier, java.util.Arrays, .Collections, .List, .Map, .Optional, java.util.stream.Collectors, org.testng.ITestNGMethod, .ITestObjectFactory, org.testng.annotations.IAnnotation, .IConfigurationAnnotation, .ITestAnnotation, org.testng.collections.Lists, .Maps, org.testng.internal.annotations.AnnotationHelper, .ConfigurationAnnotation, .IAfterClass, .IAfterGroups, .IAfterMethod, .IAfterSuite, .IAfterTest, .IAnnotationFinder, .IBaseBeforeAfterMethod, .IBeforeClass, .IBeforeGroups, .IBeforeMethod, .IBeforeSuite, .IBeforeTest, org.testng.log4testng.Logger, org.testng.xml.XmlTest

Field Summary

Modifier and TypeField and Description
private final IParameterInfo
private boolean
private final boolean
private boolean
private final boolean
private final boolean
private final boolean
private final boolean
private boolean
private final boolean
private final boolean
private final boolean
private final boolean
Inherited from org.testng.internal.BaseTestMethod:
m_afterGroupsm_annotationFinderm_beforeGroupsm_currentInvocationCountm_datem_groupsm_groupsDependedUponm_idm_methodm_methodClassm_methodsDependedUponm_objectFactorym_testClass

Constructor Summary

AccessConstructor and Description
private
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, boolean initialize, IObject.IdentifiableObject instance)

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 Summary

Modifier and TypeMethod and Description
public ConfigurationMethod
clone()

Implements abstract org.testng.internal.BaseTestMethod.clone.

Implements org.testng.ITestNGMethod.clone.

Creates and returns a copy of this object.
public static List<ITestNGMethod>
createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)

public static ITestNGMethod[]
createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)

public static List<ITestNGMethod>
createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)

private static List<ITestNGMethod>
createMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder finder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, XmlTest xmlTest, IObject.IdentifiableObject instance)

public static List<ITestNGMethod>
createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)

public static List<ITestNGMethod>
createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)

public static List<ITestNGMethod>
createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)

public IParameterInfo
public String[]
public boolean
public boolean
private boolean
private void
init()

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
Inherited from org.testng.internal.BaseTestMethod:
addFailedInvocationNumberaddMethodDependedUponcanRunFromClassdownstreamDependenciesequalsfindMethodParametersgetAfterGroupsgetAnnotationFindergetBeforeGroupsgetConstructorOrMethodgetCurrentInvocationCountgetDategetDescriptiongetEnabledgetFailedInvocationNumbersgetGroupsgetGroupsDependedUpongetIdgetInstancegetInstanceHashCodesgetInstanceIdgetInterceptedPrioritygetInvocationCountgetInvocationNumbersgetInvocationTimegetInvocationTimeOutgetMethodNamegetMethodsDependedUpongetMissingGroupgetParameterInvocationCountgetParameterTypesgetPrioritygetQualifiedNamegetRealClassgetRetryAnalyzergetRetryAnalyzerClassgetSignaturegetSimpleNamegetStringArraygetSuccessPercentagegetTestClassgetThreadPoolSizegetTimeOutgetXmlTesthashCodehasMoreInvocationignoreMissingDependenciesincrementCurrentInvocationCountinitBeforeAfterGroupsinitGroupsisAlwaysRunisTestsetAlwaysRunsetDatesetDescriptionsetDownstreamDependenciessetEnabledsetGroupssetGroupsDependedUponsetIdsetIgnoreMissingDependenciessetInterceptedPrioritysetInvocationCountsetInvocationNumberssetInvocationTimeOutsetInvokedAtsetMethodsDependedUponsetMissingGroupsetMoreInvocationCheckersetParameterInvocationCountsetPrioritysetRetryAnalyzerClasssetSkipFailedInvocationssetTestClasssetThreadPoolSizesetTimeOutsetUpstreamDependenciessetXmlTestskipFailedInvocationsstringifytoStringupstreamDependencies

Field Detail

factoryMethodInfoback to summary
private final IParameterInfo factoryMethodInfo
m_inheritGroupsFromTestClassback to summary
private boolean m_inheritGroupsFromTestClass
m_isAfterClassConfigurationback to summary
private final boolean m_isAfterClassConfiguration
m_isAfterGroupsConfigurationback to summary
private boolean m_isAfterGroupsConfiguration
m_isAfterMethodConfigurationback to summary
private final boolean m_isAfterMethodConfiguration
m_isAfterSuiteConfigurationback to summary
private final boolean m_isAfterSuiteConfiguration
m_isAfterTestConfigurationback to summary
private final boolean m_isAfterTestConfiguration
m_isBeforeClassConfigurationback to summary
private final boolean m_isBeforeClassConfiguration
m_isBeforeGroupsConfigurationback to summary
private boolean m_isBeforeGroupsConfiguration
m_isBeforeMethodConfigurationback to summary
private final boolean m_isBeforeMethodConfiguration
m_isBeforeSuiteConfigurationback to summary
private final boolean m_isBeforeSuiteConfiguration
m_isBeforeTestConfigurationback to summary
private final boolean m_isBeforeTestConfiguration
m_isIgnoreFailureback to summary
private final boolean m_isIgnoreFailure

Constructor Detail

ConfigurationMethodback to summary
private 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, boolean initialize, IObject.IdentifiableObject instance)
ConfigurationMethodback to summary
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 Detail

cloneback to summary
public ConfigurationMethod clone()

Implements abstract org.testng.internal.BaseTestMethod.clone.

Implements org.testng.ITestNGMethod.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:ConfigurationMethod

a clone of this instance.

Annotations
@Override
createAfterConfigurationMethodsback to summary
public static List<ITestNGMethod> createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
createBeforeConfigurationMethodsback to summary
public static ITestNGMethod[] createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
createClassConfigurationMethodsback to summary
public static List<ITestNGMethod> createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
createMethodsback to summary
private static List<ITestNGMethod> createMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder finder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, XmlTest xmlTest, IObject.IdentifiableObject instance)
createSuiteConfigurationMethodsback to summary
public static List<ITestNGMethod> createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
createTestConfigurationMethodsback to summary
public static List<ITestNGMethod> createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
createTestMethodConfigurationMethodsback to summary
public static List<ITestNGMethod> createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
getFactoryMethodParamsInfoback to summary
public IParameterInfo getFactoryMethodParamsInfo()

Overrides org.testng.internal.BaseTestMethod.getFactoryMethodParamsInfo.

Overrides default org.testng.ITestNGMethod.getFactoryMethodParamsInfo.

Returns:IParameterInfo

Doc from org.testng.ITestNGMethod.getFactoryMethodParamsInfo.

- A IParameterInfo object that represents details about the parameters associated with the factory method.

Annotations
@Override
getGroupFiltersback to summary
public String[] getGroupFilters()
hasAfterGroupsConfigurationback to summary
public boolean hasAfterGroupsConfiguration()

Overrides default org.testng.ITestNGMethod.hasAfterGroupsConfiguration.

Annotations
@Override
hasBeforeGroupsConfigurationback to summary
public boolean hasBeforeGroupsConfiguration()

Overrides default org.testng.ITestNGMethod.hasBeforeGroupsConfiguration.

Annotations
@Override
inheritGroupsFromTestClassback to summary
private boolean inheritGroupsFromTestClass()
initback to summary
private void init()
isAfterClassConfigurationback to summary
public boolean isAfterClassConfiguration()

Overrides org.testng.internal.BaseTestMethod.isAfterClassConfiguration.

Implements org.testng.ITestNGMethod.isAfterClassConfiguration.

Returns:boolean

Returns the isAfterClassConfiguration.

Annotations
@Override
isAfterGroupsConfigurationback to summary
public boolean isAfterGroupsConfiguration()

Overrides org.testng.internal.BaseTestMethod.isAfterGroupsConfiguration.

Implements org.testng.ITestNGMethod.isAfterGroupsConfiguration.

Annotations
@Override
isAfterMethodConfigurationback to summary
public boolean isAfterMethodConfiguration()

Overrides org.testng.internal.BaseTestMethod.isAfterMethodConfiguration.

Implements org.testng.ITestNGMethod.isAfterMethodConfiguration.

Returns:boolean

Returns the isAfterMethodConfiguration.

Annotations
@Override
isAfterSuiteConfigurationback to summary
public boolean isAfterSuiteConfiguration()

Overrides org.testng.internal.BaseTestMethod.isAfterSuiteConfiguration.

Implements org.testng.ITestNGMethod.isAfterSuiteConfiguration.

Returns:boolean

Returns the isAfterSuiteConfiguration.

Annotations
@Override
isAfterTestConfigurationback to summary
public boolean isAfterTestConfiguration()

Overrides org.testng.internal.BaseTestMethod.isAfterTestConfiguration.

Implements org.testng.ITestNGMethod.isAfterTestConfiguration.

Returns:boolean

Doc from org.testng.ITestNGMethod.isAfterTestConfiguration.

true if this method is an @AfterTest (@Configuration afterTest=true)

Annotations
@Override
isBeforeClassConfigurationback to summary
public boolean isBeforeClassConfiguration()

Overrides org.testng.internal.BaseTestMethod.isBeforeClassConfiguration.

Implements org.testng.ITestNGMethod.isBeforeClassConfiguration.

Returns:boolean

Returns the isBeforeClassConfiguration.

Annotations
@Override
isBeforeGroupsConfigurationback to summary
public boolean isBeforeGroupsConfiguration()

Overrides org.testng.internal.BaseTestMethod.isBeforeGroupsConfiguration.

Implements org.testng.ITestNGMethod.isBeforeGroupsConfiguration.

Annotations
@Override
isBeforeMethodConfigurationback to summary
public boolean isBeforeMethodConfiguration()

Overrides org.testng.internal.BaseTestMethod.isBeforeMethodConfiguration.

Implements org.testng.ITestNGMethod.isBeforeMethodConfiguration.

Returns:boolean

Returns the isBeforeMethodConfiguration.

Annotations
@Override
isBeforeSuiteConfigurationback to summary
public boolean isBeforeSuiteConfiguration()

Overrides org.testng.internal.BaseTestMethod.isBeforeSuiteConfiguration.

Implements org.testng.ITestNGMethod.isBeforeSuiteConfiguration.

Returns:boolean

Returns the isBeforeSuiteConfiguration.

Annotations
@Override
isBeforeTestConfigurationback to summary
public boolean isBeforeTestConfiguration()

Overrides org.testng.internal.BaseTestMethod.isBeforeTestConfiguration.

Implements org.testng.ITestNGMethod.isBeforeTestConfiguration.

Returns:boolean

Doc from org.testng.ITestNGMethod.isBeforeTestConfiguration.

true if this method is a @BeforeTest (@Configuration beforeTest=true)

Annotations
@Override
isFirstTimeOnlyback to summary
public boolean isFirstTimeOnly()
isIgnoreFailureback to summary
public boolean isIgnoreFailure()

Overrides default org.testng.ITestNGMethod.isIgnoreFailure.

Returns:boolean

Doc from org.testng.ITestNGMethod.isIgnoreFailure.

- true if the configuration failure arising out of this method should be ignored.

Annotations
@Override
isLastTimeOnlyback to summary
public boolean isLastTimeOnly()