Package org.testng
Class JarFileUtils
java.lang.Object
org.testng.JarFileUtils
A Utility for extracting
XmlSuite
from a jar.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XmlSuite.ParallelMode
private final IPostProcessor
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionJarFileUtils
(IPostProcessor processor, String xmlPathInJar, List<String> testNames) JarFileUtils
(IPostProcessor processor, String xmlPathInJar, List<String> testNames, XmlSuite.ParallelMode mode) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
private void
extractSuitesFrom
(File jarFile) private static boolean
isJavaClass
(JarEntry je) private boolean
private boolean
testngXmlExistsInJar
(File jarFile, List<String> classes)
-
Field Details
-
processor
-
xmlPathInJar
-
testNames
-
suites
-
mode
-
-
Constructor Details
-
JarFileUtils
JarFileUtils(IPostProcessor processor, String xmlPathInJar, List<String> testNames) -
JarFileUtils
JarFileUtils(IPostProcessor processor, String xmlPathInJar, List<String> testNames, XmlSuite.ParallelMode mode)
-
-
Method Details
-
extractSuitesFrom
-
testngXmlExistsInJar
- Throws:
IOException
-
delete
- Throws:
IOException
-
matchesXmlPathInJar
-
isJavaClass
-
constructClassName
-