Top Description Fields Constructors Methods
org.testng.internal

public abstract Class BaseTestMethod

extends Object
implements ITestNGMethod, IInvocationStatus, IInstanceIdentity
Class Inheritance
All Implemented Interfaces
org.testng.internal.IInstanceIdentity, org.testng.internal.invokers.IInvocationStatus, org.testng.ITestNGMethod, java.lang.Cloneable
Known Direct Subclasses
org.testng.internal.ConfigurationMethod, org.testng.internal.FactoryMethod, org.testng.internal.TestNGMethod
Imports
java.util.ArrayList, .Arrays, .Collection, .Collections, .List, .Map, .Optional, .Set, .UUID, java.util.concurrent.Callable, .ConcurrentHashMap, .ConcurrentLinkedQueue, java.util.concurrent.atomic.AtomicInteger, java.util.function.Function, java.util.regex.Pattern, java.util.stream.Collectors, org.testng.IClass, .IRetryAnalyzer, .ITestClass, .ITestNGMethod, .ITestObjectFactory, .ITestResult, org.testng.annotations.CustomAttribute, .ITestOrConfiguration, org.testng.collections.Lists, .Maps, .Sets, org.testng.internal.annotations.DisabledRetryAnalyzer, .IAnnotationFinder, org.testng.internal.invokers.IInvocationStatus, org.testng.internal.objects.Dispenser, org.testng.internal.objects.pojo.BasicAttributes, .CreationAttributes, org.testng.xml.XmlTest

Superclass to represent both @Test and @Configuration methods.

Field Summary

Modifier and TypeField and Description
private final Set<ITestNGMethod>
private long
protected String[]
protected final IAnnotationFinder
protected String[]
protected AtomicInteger
protected long
private String
private boolean
private final Collection<Integer>
protected String[]
protected String[]
protected String
private boolean
private final IObject.IdentifiableObject
private int
private List<Integer>
private long
private boolean
protected final ConstructorOrMethod
protected final Class<?>
private final String
protected String[]
private String
private Callable<Boolean>
protected final ITestObjectFactory
private int
private int
private IRetryAnalyzer
private Class<? extends IRetryAnalyzer>
private String
private boolean
protected ITestClass
m_testClass

The test class on which the test method was found.

private final Map<String, IRetryAnalyzer>
private long
private XmlTest
private final Map<IObject.IdentifiableArrayObject, IObject.IdentifiableArrayObject>
private static final Pattern
private final Set<ITestNGMethod>

Constructor Summary

AccessConstructor and Description
public
BaseTestMethod(ITestObjectFactory objectFactory, String methodName, ConstructorOrMethod com, IAnnotationFinder annotationFinder, IObject.IdentifiableObject instance)

Method Summary

Modifier and TypeMethod and Description
public void
addFailedInvocationNumber(int
The invocation number that failed
number
)

Implements org.testng.ITestNGMethod.addFailedInvocationNumber.

The list of invocation numbers that failed, which is only applicable for methods that have a data provider.
public void
private String[]
private static Map<String, Set<String>>
public boolean
public abstract ITestNGMethod
clone()

Redeclares org.testng.ITestNGMethod.clone.

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.
private IRetryAnalyzer
private String
private String
public Set<ITestNGMethod>
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public Map<String, String>
public String[]
protected IAnnotationFinder
public String[]
public ConstructorOrMethod
public int
public long

Returns:

Returns the date.
getDate
()

Implements org.testng.ITestNGMethod.getDate.

public String
public boolean
public IParameterInfo
public List<Integer>
public String[]

Returns:

the addition of groups defined on the class and on this method.
getGroups
()

Implements org.testng.ITestNGMethod.getGroups.

public String[]
public String
public Object
public long[]
public UUID
public int
public int

Returns:

the number of times this method needs to be invoked.
getInvocationCount
()

Implements org.testng.ITestNGMethod.getInvocationCount.

public List<Integer>
getInvocationNumbers()

Implements org.testng.ITestNGMethod.getInvocationNumbers.

Which invocation numbers of this method should be used (only applicable if it uses a data provider).
public long
public long
public String
getMethodName()

Implements org.testng.ITestNGMethod.getMethodName.

Returns the method name.
public String[]
public String
public int
public Class<?>[]
public int
getPriority()

Implements org.testng.ITestNGMethod.getPriority.

The scheduling priority.
public String
getQualifiedName()

Implements org.testng.ITestNGMethod.getQualifiedName.

getRealClass().getName() + "." + getMethodName()
public Class<?>
public IRetryAnalyzer
public Class<? extends IRetryAnalyzer>
private IRetryAnalyzer
protected String
public String
protected String[]
getStringArray(String[] methodArray, String[] classArray)

public int
getSuccessPercentage()

Implements org.testng.ITestNGMethod.getSuccessPercentage.

Default value for successPercentage.
public ITestClass
public int
public long
public XmlTest
public int

Returns:

the associated Java Method's hash code.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.
public boolean
public boolean
public void
protected void
initBeforeAfterGroups(Class<? extends ITestOrConfiguration> annotationClass, String[] groups)

protected void
initGroups(Class<? extends ITestOrConfiguration> annotationClass)

private void
private String
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
private static boolean
public boolean
private String
protected void
setAlwaysRun(boolean alwaysRun)

public void
setDate(long
The date to set.
date
)

Implements org.testng.ITestNGMethod.setDate.

public void
public void
public void
setEnabled(boolean enabled)

protected void
setGroups(String[] groups)

protected void
setGroupsDependedUpon(String[] groups, Collection<String> xmlGroupDependencies)

public void
public void
public void
public void
public void
public void
setInvocationTimeOut(long timeOut)

public void
setInvokedAt(long
- The timestamp at which a method was invoked.
date
)

Implements org.testng.internal.invokers.IInvocationStatus.setInvokedAt.

protected void
public void
public void
public void
public void
public void
public void
public void
setTestClass(ITestClass
The test class having this method.
tc
)

Implements org.testng.ITestNGMethod.setTestClass.

Sets the test class having this method.
public void
setThreadPoolSize(int threadPoolSize)

Implements org.testng.ITestNGMethod.setThreadPoolSize.

No-op.
public void
private static void
public void
public void
public boolean
pack-priv static StringBuilder
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Set<ITestNGMethod>
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait