Support TestNG with @CompileWithTargetClassAccess
This commit is contained in:
@@ -41,7 +41,7 @@ final class CompileWithTargetClassAccessClassLoader extends ClassLoader {
|
||||
|
||||
@Override
|
||||
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||
if (name.startsWith("org.junit")) {
|
||||
if (name.startsWith("org.junit") || name.startsWith("org.testng")) {
|
||||
return Class.forName(name, false, this.testClassLoader);
|
||||
}
|
||||
return super.loadClass(name);
|
||||
|
||||
Reference in New Issue
Block a user