@@ -13,29 +13,29 @@ public static class CustomClassLoader extends ClassLoader {
13
13
private final ClassLoader classLoader = new CustomClassLoader ();
14
14
15
15
@ Test
16
- void isolatedClasspath () throws IOException {
16
+ public void isolatedClasspath () throws IOException {
17
17
try (S3AFileSystem fs = new S3AFileSystem ()) {
18
18
Configuration conf = new Configuration ();
19
19
conf .setBoolean (Constants .AWS_S3_EXTENSIONS_ISOLATED_CLASSLOADER , true );
20
20
fs .isolateClassloader (conf , classLoader );
21
- Assert .assertFalse (conf .getClassLoader () instanceof CustomClassLoader );
21
+ Assert .assertTrue (conf .getClassLoader () instanceof CustomClassLoader );
22
22
}
23
23
}
24
24
25
25
@ Test
26
- void isolatedClasspathDefault () throws IOException {
26
+ public void isolatedClasspathDefault () throws IOException {
27
27
try (S3AFileSystem fs = new S3AFileSystem ()) {
28
28
Configuration conf = new Configuration ();
29
- conf .setBoolean (Constants .AWS_S3_EXTENSIONS_ISOLATED_CLASSLOADER , false );
30
29
fs .isolateClassloader (conf , classLoader );
31
- Assert .assertFalse (conf .getClassLoader () instanceof CustomClassLoader );
30
+ Assert .assertTrue (conf .getClassLoader () instanceof CustomClassLoader );
32
31
}
33
32
}
34
33
35
34
@ Test
36
- void notIsolatedClasspath () throws IOException {
35
+ public void notIsolatedClasspath () throws IOException {
37
36
try (S3AFileSystem fs = new S3AFileSystem ()) {
38
37
Configuration conf = new Configuration ();
38
+ conf .setBoolean (Constants .AWS_S3_EXTENSIONS_ISOLATED_CLASSLOADER , false );
39
39
fs .isolateClassloader (conf , classLoader );
40
40
Assert .assertFalse (conf .getClassLoader () instanceof CustomClassLoader );
41
41
}
0 commit comments