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
- Author:
- Cedric Beust
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addClassLoader
(ClassLoader loader) Add a class loader to the searchable loaders.static String[]
-
Method Details
-
addClassLoader
Add a class loader to the searchable loaders. -
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.
-