Class PackageUtils

java.lang.Object
org.testng.internal.PackageUtils

public class PackageUtils extends Object
Utility class that finds all the classes in a given package.

Created on Feb 24, 2006

Author:
Cedric Beust
  • Method Details

    • addClassLoader

      public static void addClassLoader(ClassLoader loader)
      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 name
      included - - The inclusion list.
      excluded - - The exclusion list
      Returns:
      - The list of all the classes inside this package
      Throws:
      IOException - - if there is an exception.