Package org.testng
Class JarFileUtils
- java.lang.Object
-
- org.testng.JarFileUtils
-
class JarFileUtils extends java.lang.Object
A Utility for extractingXmlSuite
from a jar.
-
-
Field Summary
Fields Modifier and Type Field Description private IPostProcessor
processor
private java.util.List<XmlSuite>
suites
private java.util.List<java.lang.String>
testNames
private java.lang.String
xmlPathInJar
-
Constructor Summary
Constructors Constructor Description JarFileUtils(IPostProcessor processor, java.lang.String xmlPathInJar, java.util.List<java.lang.String> testNames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
constructClassName(java.util.jar.JarEntry je)
(package private) java.util.List<XmlSuite>
extractSuitesFrom(java.io.File jarFile)
private static boolean
isJavaClass(java.util.jar.JarEntry je)
private boolean
matchesXmlPathInJar(java.util.jar.JarEntry je)
private boolean
testngXmlExistsInJar(java.io.File jarFile, java.util.List<java.lang.String> classes)
-
-
-
Field Detail
-
processor
private final IPostProcessor processor
-
xmlPathInJar
private final java.lang.String xmlPathInJar
-
testNames
private final java.util.List<java.lang.String> testNames
-
suites
private final java.util.List<XmlSuite> suites
-
-
Constructor Detail
-
JarFileUtils
JarFileUtils(IPostProcessor processor, java.lang.String xmlPathInJar, java.util.List<java.lang.String> testNames)
-
-
Method Detail
-
extractSuitesFrom
java.util.List<XmlSuite> extractSuitesFrom(java.io.File jarFile)
-
testngXmlExistsInJar
private boolean testngXmlExistsInJar(java.io.File jarFile, java.util.List<java.lang.String> classes) throws java.io.IOException
- Throws:
java.io.IOException
-
matchesXmlPathInJar
private boolean matchesXmlPathInJar(java.util.jar.JarEntry je)
-
isJavaClass
private static boolean isJavaClass(java.util.jar.JarEntry je)
-
constructClassName
private static java.lang.String constructClassName(java.util.jar.JarEntry je)
-
-