Package org.testng.xml.internal
Class XmlSuiteUtils
- java.lang.Object
-
- org.testng.xml.internal.XmlSuiteUtils
-
public final class XmlSuiteUtils extends java.lang.Object
A utility class to work withXmlSuite
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
adjustSuiteNamesToEnsureUniqueness(java.util.List<XmlSuite> suites)
Ensure that two XmlSuite don't have the same namestatic XmlSuite
newXmlSuiteUsing(java.util.List<java.lang.String> classes)
static void
validateIfSuitesContainDuplicateTests(java.util.List<XmlSuite> suites)
A validator that runs through the list of suites and checks if each of the suites contains anyXmlTest
with the same name.
-
-
-
Method Detail
-
validateIfSuitesContainDuplicateTests
public static void validateIfSuitesContainDuplicateTests(java.util.List<XmlSuite> suites)
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
public static void adjustSuiteNamesToEnsureUniqueness(java.util.List<XmlSuite> suites)
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
public static XmlSuite newXmlSuiteUsing(java.util.List<java.lang.String> classes)
-
-