File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/authorization Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 23
23
package org .opengrok .indexer .authorization ;
24
24
25
25
import java .io .File ;
26
+ import java .net .URISyntaxException ;
26
27
import java .net .URL ;
28
+ import java .nio .file .Paths ;
29
+
27
30
import org .junit .Assert ;
28
31
import org .junit .Test ;
29
32
import org .opengrok .indexer .configuration .Group ;
@@ -34,9 +37,10 @@ public class AuthorizationPluginClassLoaderTest {
34
37
35
38
private final File pluginDirectory ;
36
39
37
- public AuthorizationPluginClassLoaderTest () {
40
+ public AuthorizationPluginClassLoaderTest () throws URISyntaxException {
38
41
URL resource = AuthorizationPluginClassLoaderTest .class .getResource ("/authorization/plugins/testplugins.jar" );
39
- pluginDirectory = new File (resource .getFile ()).getParentFile ();
42
+ pluginDirectory = Paths .get (resource .toURI ()).toFile ().getParentFile ();
43
+ Assert .assertTrue (pluginDirectory .isDirectory ());
40
44
}
41
45
42
46
@ Test
You can’t perform that action at this time.
0 commit comments