Package org.testng.xml.internal
Class XmlSuiteUtils
java.lang.Object
org.testng.xml.internal.XmlSuiteUtils
A utility class to work with
XmlSuite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensure that two XmlSuite don't have the same nameprivate static void
adjustSuiteNamesToEnsureUniqueness
(List<XmlSuite> suites, Set<String> names) constructXmlClassesUsing
(List<String> classes) (package private) static void
ensureNoDuplicateTestsArePresent
(XmlSuite xmlSuite) Ensures that the current suite doesn't contain any duplicateXmlTest
instances.static XmlSuite
newXmlSuiteUsing
(List<String> classes) static void
A validator that runs through the list of suites and checks if each of the suites contains anyXmlTest
with the same name.
-
Constructor Details
-
XmlSuiteUtils
private XmlSuiteUtils()
-
-
Method Details
-
validateIfSuitesContainDuplicateTests
A validator that runs through the list of suites and checks if each of the suites contains anyXmlTest
with the same name. If found, then aTestNGException
is raised.- Parameters:
suites
- - The list ofXmlSuite
to validate.
-
adjustSuiteNamesToEnsureUniqueness
Ensure that two XmlSuite don't have the same name- Parameters:
suites
- - The List ofXmlSuite
that are to be tested and names updated if duplicate names found.
-
newXmlSuiteUsing
-
ensureNoDuplicateTestsArePresent
Ensures that the current suite doesn't contain any duplicateXmlTest
instances. If duplicates are found, then aTestNGException
is raised.- Parameters:
xmlSuite
- - TheXmlSuite
to work with.
-
constructXmlClassesUsing
-
adjustSuiteNamesToEnsureUniqueness
-