mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
increased test robustness
This commit is contained in:
@@ -179,6 +179,7 @@ public class JarAnalyzerTest extends BaseTest {
|
||||
public void testParseManifest_CatchesIOException() {
|
||||
Dependency dependency = new Dependency();
|
||||
dependency.setActualFilePath("doesNotExist");
|
||||
assertFalse(new File(dependency.getActualFilePath()).exists());
|
||||
assertFalse(new JarAnalyzer().parseManifest(dependency, new ArrayList<ClassNameInformation>()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user