NIFI-11319 Fixing TestStatelessBootstrap::testClassNotAllowed (#7070)

This commit is contained in:
simonbence 2023-03-22 21:23:44 +01:00 committed by Mark Payne
parent 110912fcfb
commit cef61c866d
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class TestStatelessBootstrap {
final String classToLoad = "org.apache.nifi.stateless.bootstrap.RunStatelessFlow"; final String classToLoad = "org.apache.nifi.stateless.bootstrap.RunStatelessFlow";
// A directory for NARs, jars, etc. that are allowed by the AllowListClassLoader // A directory for NARs, jars, etc. that are allowed by the AllowListClassLoader
final File narDirectory = new File("target"); final File narDirectory = new File("target/generated-sources");
// Create a URLClassLoader to use for the System ClassLoader. This will load the classes from the target/ directory. // Create a URLClassLoader to use for the System ClassLoader. This will load the classes from the target/ directory.
// Then create an AllowListClassLoader that will not allow these classes through. // Then create an AllowListClassLoader that will not allow these classes through.