Package org.testng.xml.internal
Class XmlSuiteUtils
java.lang.Object
org.testng.xml.internal.XmlSuiteUtils
A utility class to work with
XmlSuite
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensure that two XmlSuite don't have the same namestatic 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.
-
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
-