Package org.testng.internal
Class PackageUtils
java.lang.Object
org.testng.internal.PackageUtils
Utility class that finds all the classes in a given package.
Created on Feb 24, 2006
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<ClassLoader>
The additional class loaders to find classes in.private static String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Function<ClassLoader,
Stream<URL>> static String[]
private static String[]
private static boolean
matchTestClasspath
(URL url, String lastFragment, boolean recursive)
-
Field Details
-
testClassPaths
-
classLoaders
The additional class loaders to find classes in.
-
-
Constructor Details
-
PackageUtils
private PackageUtils()
-
-
Method Details
-
findClassesInPackage
public static String[] findClassesInPackage(String packageName, List<String> included, List<String> excluded) throws IOException - Parameters:
packageName
- - The package nameincluded
- - The inclusion list.excluded
- - The exclusion list- Returns:
- - The list of all the classes inside this package
- Throws:
IOException
- - if there is an exception.
-
getTestClasspath
-
asURLs
-
matchTestClasspath
-