Package org.testng.internal
Class RunInfo
- java.lang.Object
-
- org.testng.internal.RunInfo
-
public class RunInfo extends java.lang.Object
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
Fields Modifier and Type Field Description private java.util.Set<MethodSelectorDescriptor>
m_methodSelectors
private java.util.function.Supplier<XmlTest>
xmlTest
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMethodSelector(IMethodSelector selector, int priority)
XmlTest
getXmlTest()
boolean
includeMethod(ITestNGMethod tm, boolean isTestMethod)
void
setTestMethods(java.util.List<ITestNGMethod> testMethods)
-
-
-
Field Detail
-
m_methodSelectors
private final java.util.Set<MethodSelectorDescriptor> m_methodSelectors
-
xmlTest
private final java.util.function.Supplier<XmlTest> xmlTest
-
-
Constructor Detail
-
RunInfo
public RunInfo(java.util.function.Supplier<XmlTest> xmlTest)
-
-
Method Detail
-
getXmlTest
public XmlTest getXmlTest()
-
addMethodSelector
public void addMethodSelector(IMethodSelector selector, int priority)
-
includeMethod
public boolean includeMethod(ITestNGMethod tm, boolean isTestMethod)
- Returns:
- true as soon as we fond a Method Selector that returns true for the method "tm".
-
setTestMethods
public void setTestMethods(java.util.List<ITestNGMethod> testMethods)
-
-