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 36
36
import java .util .zip .ZipInputStream ;
37
37
38
38
import static org .junit .jupiter .api .Assertions .assertEquals ;
39
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
39
40
import static org .junit .jupiter .api .Assertions .assertTrue ;
40
41
import static org .opengrok .indexer .condition .RepositoryInstalled .Type .SCCS ;
41
42
@@ -106,7 +107,9 @@ private String readInput(InputStream in) throws IOException {
106
107
*/
107
108
@ Test
108
109
void getRevision () throws Exception {
109
- ZipInputStream zstream = new ZipInputStream (getClass ().getResourceAsStream ("/history/sccs-revisions.zip" ));
110
+ InputStream inputStream = getClass ().getResourceAsStream ("/history/sccs-revisions.zip" );
111
+ assertNotNull (inputStream );
112
+ ZipInputStream zstream = new ZipInputStream (inputStream );
110
113
ZipEntry entry ;
111
114
112
115
while ((entry = zstream .getNextEntry ()) != null ) {
You can’t perform that action at this time.
0 commit comments