public class ConfigurationMethod extends BaseTestMethod
Modifier and Type | Field and Description |
---|---|
private boolean |
m_inheritGroupsFromTestClass |
private boolean |
m_isAfterClassConfiguration |
private boolean |
m_isAfterMethodConfiguration |
private boolean |
m_isAfterSuiteConfiguration |
private boolean |
m_isAfterTestConfiguration |
private boolean |
m_isBeforeClassConfiguration |
private boolean |
m_isBeforeMethodConfiguration |
private boolean |
m_isBeforeSuiteConfiguration |
private boolean |
m_isBeforeTestConfiguration |
private static long |
serialVersionUID |
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
Modifier | Constructor and Description |
---|---|
private |
ConfigurationMethod(ConstructorOrMethod com,
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,
boolean initialize,
java.lang.Object instance) |
|
ConfigurationMethod(ConstructorOrMethod com,
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,
java.lang.Object instance) |
|
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,
java.lang.Object instance)
Deprecated.
use #ConfigurationMethod(ConstructorOrMethod,...) instead.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationMethod |
clone() |
static ITestNGMethod[] |
createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
private static ITestNGMethod[] |
createMethods(ITestNGMethod[] methods,
IAnnotationFinder finder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
static ITestNGMethod[] |
createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
private boolean |
inheritGroupsFromTestClass() |
private void |
init() |
boolean |
isAfterClassConfiguration() |
boolean |
isAfterGroupsConfiguration() |
boolean |
isAfterMethodConfiguration() |
boolean |
isAfterSuiteConfiguration() |
boolean |
isAfterTestConfiguration() |
boolean |
isBeforeClassConfiguration() |
boolean |
isBeforeGroupsConfiguration() |
boolean |
isBeforeMethodConfiguration() |
boolean |
isBeforeSuiteConfiguration() |
boolean |
isBeforeTestConfiguration() |
boolean |
isFirstTimeOnly() |
boolean |
isLastTimeOnly() |
private static void |
ppp(java.lang.String s) |
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, compareTo, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInstances, getInvocationCount, getInvocationNumbers, getInvocationTimeOut, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getPriority, getRealClass, getRetryAnalyzer, getSignature, getSimpleName, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getTotalInvocationCount, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initGroups, isAlwaysRun, isTest, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations, toString
private static final long serialVersionUID
private final boolean m_isBeforeSuiteConfiguration
private final boolean m_isAfterSuiteConfiguration
private final boolean m_isBeforeTestConfiguration
private final boolean m_isAfterTestConfiguration
private final boolean m_isBeforeClassConfiguration
private final boolean m_isAfterClassConfiguration
private final boolean m_isBeforeMethodConfiguration
private final boolean m_isAfterMethodConfiguration
private boolean m_inheritGroupsFromTestClass
private ConfigurationMethod(ConstructorOrMethod com, 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, boolean initialize, java.lang.Object instance)
@Deprecated 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, java.lang.Object instance)
public ConfigurationMethod(ConstructorOrMethod com, 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, java.lang.Object instance)
private static ITestNGMethod[] createMethods(ITestNGMethod[] methods, IAnnotationFinder finder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, java.lang.String[] beforeGroups, java.lang.String[] afterGroups, java.lang.Object instance)
public static ITestNGMethod[] createSuiteConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
public static ITestNGMethod[] createTestConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
public static ITestNGMethod[] createClassConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
public static ITestNGMethod[] createBeforeConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
public static ITestNGMethod[] createAfterConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
public static ITestNGMethod[] createTestMethodConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
public boolean isAfterClassConfiguration()
BaseTestMethod
isAfterClassConfiguration
in interface ITestNGMethod
isAfterClassConfiguration
in class BaseTestMethod
public boolean isAfterMethodConfiguration()
BaseTestMethod
isAfterMethodConfiguration
in interface ITestNGMethod
isAfterMethodConfiguration
in class BaseTestMethod
public boolean isBeforeClassConfiguration()
BaseTestMethod
isBeforeClassConfiguration
in interface ITestNGMethod
isBeforeClassConfiguration
in class BaseTestMethod
public boolean isBeforeMethodConfiguration()
BaseTestMethod
isBeforeMethodConfiguration
in interface ITestNGMethod
isBeforeMethodConfiguration
in class BaseTestMethod
public boolean isAfterSuiteConfiguration()
BaseTestMethod
isAfterSuiteConfiguration
in interface ITestNGMethod
isAfterSuiteConfiguration
in class BaseTestMethod
public boolean isBeforeSuiteConfiguration()
BaseTestMethod
isBeforeSuiteConfiguration
in interface ITestNGMethod
isBeforeSuiteConfiguration
in class BaseTestMethod
public boolean isBeforeTestConfiguration()
BaseTestMethod
isBeforeTestConfiguration
in interface ITestNGMethod
isBeforeTestConfiguration
in class BaseTestMethod
public boolean isAfterTestConfiguration()
BaseTestMethod
isAfterTestConfiguration
in interface ITestNGMethod
isAfterTestConfiguration
in class BaseTestMethod
public boolean isBeforeGroupsConfiguration()
BaseTestMethod
isBeforeGroupsConfiguration
in interface ITestNGMethod
isBeforeGroupsConfiguration
in class BaseTestMethod
public boolean isAfterGroupsConfiguration()
BaseTestMethod
isAfterGroupsConfiguration
in interface ITestNGMethod
isAfterGroupsConfiguration
in class BaseTestMethod
private boolean inheritGroupsFromTestClass()
private void init()
private static void ppp(java.lang.String s)
public ConfigurationMethod clone()
clone
in interface ITestNGMethod
clone
in class BaseTestMethod
public boolean isFirstTimeOnly()
public boolean isLastTimeOnly()