mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 00:04:27 +01:00
minor correction to unit tests
Former-commit-id: 44829f536b0940ed95750890262a1ab668c57745
This commit is contained in:
@@ -207,6 +207,7 @@ public class ArchiveAnalyzerTest extends AbstractDatabaseTestCase {
|
|||||||
@Test
|
@Test
|
||||||
public void testAnalyzeTarGz() throws Exception {
|
public void testAnalyzeTarGz() throws Exception {
|
||||||
ArchiveAnalyzer instance = new ArchiveAnalyzer();
|
ArchiveAnalyzer instance = new ArchiveAnalyzer();
|
||||||
|
instance.supportsExtension("zip"); //ensure analyzer is "enabled"
|
||||||
try {
|
try {
|
||||||
instance.initialize();
|
instance.initialize();
|
||||||
|
|
||||||
@@ -256,6 +257,7 @@ public class ArchiveAnalyzerTest extends AbstractDatabaseTestCase {
|
|||||||
@Test
|
@Test
|
||||||
public void testAnalyzeTgz() throws Exception {
|
public void testAnalyzeTgz() throws Exception {
|
||||||
ArchiveAnalyzer instance = new ArchiveAnalyzer();
|
ArchiveAnalyzer instance = new ArchiveAnalyzer();
|
||||||
|
instance.supportsExtension("zip"); //ensure analyzer is "enabled"
|
||||||
try {
|
try {
|
||||||
instance.initialize();
|
instance.initialize();
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ public class VulnerabilitySuppressionAnalyzerTest extends AbstractDatabaseTestCa
|
|||||||
instance.initialize();
|
instance.initialize();
|
||||||
instance.analyze(dependency, engine);
|
instance.analyze(dependency, engine);
|
||||||
assertTrue(dependency.getVulnerabilities().size() == 0);
|
assertTrue(dependency.getVulnerabilities().size() == 0);
|
||||||
|
engine.cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user