Top Description Fields Constructors Methods
org.testng.internal

public Class RunInfo

extends Object
Class Inheritance
Imports
java.util.List, .Set, .TreeSet, java.util.function.Supplier, org.testng.IMethodSelector, .IMethodSelectorContext, .ITestNGMethod, org.testng.xml.XmlTest

This class contains all the information needed to determine what methods should be run. It gets invoked by the TestRunner and then goes through its list of method selectors to decide what methods need to be run.

Field Summary

Modifier and TypeField and Description
private final Set<MethodSelectorDescriptor>
private final Supplier<XmlTest>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addMethodSelector(IMethodSelector selector, int priority)

public XmlTest
public boolean

Returns:

true as soon as we fond a Method Selector that returns true for the method "tm".
includeMethod
(ITestNGMethod tm, boolean isTestMethod)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_methodSelectorsback to summary
private final Set<MethodSelectorDescriptor> m_methodSelectors
xmlTestback to summary
private final Supplier<XmlTest> xmlTest

Constructor Detail

RunInfoback to summary
public RunInfo(Supplier<XmlTest> xmlTest)

Method Detail

addMethodSelectorback to summary
public void addMethodSelector(IMethodSelector selector, int priority)
getXmlTestback to summary
public XmlTest getXmlTest()
includeMethodback to summary
public boolean includeMethod(ITestNGMethod tm, boolean isTestMethod)
Returns:boolean

true as soon as we fond a Method Selector that returns true for the method "tm".

setTestMethodsback to summary
public void setTestMethods(List<ITestNGMethod> testMethods)