mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 18:41:44 +01:00
minor correction to unit tests
Former-commit-id: 20b80df37f0abb3c76d44e639c8d9c8c02f4ef71
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