/** * Create a test with test's package visible and the packages * of the classes listed * * It exports everything * * @param clazz the test class * @param importAll whether to import all * @param packages the classes in packages that should also be included * @return the test */ public static Test suite(Class<?> clazz, boolean importAll, Class<?>... packages) { helper = new IsolatedClassLoaderTestHelper(); Class<?> newClass = helper.initializeClassLoader(clazz, importAll, packages); // Create the test based on the isolated class return AbstractTestCaseWithSetup.suite(newClass); }
/** * Create a test with test's package visible and the packages * of the classes listed * * It exports everything * * @param clazz the test class * @param importAll whether to import all * @param packages the classes in packages that should also be included * @return the test */ public static Test suite(Class<?> clazz, boolean importAll, Class<?>... packages) { helper = new IsolatedClassLoaderTestHelper(); Class<?> newClass = helper.initializeClassLoader(clazz, importAll, packages); // Create the test based on the isolated class return AbstractTestCaseWithSetup.suite(newClass); }