File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 38
38
import java .io .File ;
39
39
import java .io .FileOutputStream ;
40
40
import java .io .IOException ;
41
+ import java .net .URL ;
41
42
import java .nio .charset .StandardCharsets ;
42
43
import java .nio .file .Files ;
43
44
import java .nio .file .Path ;
@@ -103,7 +104,9 @@ static void setUpClass() throws Exception {
103
104
@ BeforeEach
104
105
void setUp () throws Exception {
105
106
repositories = new TestRepository ();
106
- repositories .create (getClass ().getResource ("/repositories" ));
107
+ URL url = getClass ().getResource ("/repositories" );
108
+ assertNotNull (url );
109
+ repositories .create (url );
107
110
108
111
// Needed for HistoryGuru to operate normally.
109
112
env .setRepositories (repositories .getSourceRoot ());
You can’t perform that action at this time.
0 commit comments