/** * Create a classloader * * It exports everything * It imports everything * * @param name the name * @param packages the packages * @return the classloader * @throws Exception for any error */ protected static ClassLoader createClassLoader(String name, String... packages) throws Exception { return createClassLoader(name, true, packages); }
/** * Create a test with just test's package visible * and the default parent packages * * It imports nothing * * @param clazz the test class * @return the test */ public static Test suite(Class<?> clazz) { return suite(clazz, false); }
@Override protected void setUp() throws Exception { super.setUp(); configureLogging(); }
@Override protected void setUp() throws Exception { super.setUp(); configureLogging(); }
/** * Create a test with just test's package visible * and the default parent packages * * It imports nothing * * @param clazz the test class * @return the test */ public static Test suite(Class<?> clazz) { return suite(clazz, false); }
/** * Create a classloader * * It exports everything * It imports everything * * @param name the name * @param packages the packages * @return the classloader * @throws Exception for any error */ protected static ClassLoader createClassLoader(String name, String... packages) throws Exception { return createClassLoader(name, true, packages); }
/** * Create a test with just test's package visible * and the default parent packages * * It exports everything * * @param clazz the test class * @param importAll whether to import all * @return the test */ public static Test suite(Class<?> clazz, boolean importAll) { return suite(clazz, importAll, new Class[0]); }
/** * Create a test with just test's package visible * and the default parent packages * * It exports everything * * @param clazz the test class * @param importAll whether to import all * @return the test */ public static Test suite(Class<?> clazz, boolean importAll) { return suite(clazz, importAll, new Class[0]); }
/** * Create a test with test's package visible and the packages * of the classes listed with the default parent packages * * It exports everything * It imports nothing * * @param clazz the test class * @param packages the classes in packages that should also be included * @return the test */ public static Test suite(Class<?> clazz, Class<?>... packages) { return suite(clazz, false, packages); }
/** * Create a test with test's package visible and the packages * of the classes listed with the default parent packages * * It exports everything * It imports nothing * * @param clazz the test class * @param packages the classes in packages that should also be included * @return the test */ public static Test suite(Class<?> clazz, Class<?>... packages) { return suite(clazz, false, packages); }