mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 11:01:44 +01:00
updated failing test case to expect the correct exception
This commit is contained in:
@@ -8,7 +8,7 @@ import org.owasp.dependencycheck.utils.Settings;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.FileNotFoundException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ public class CentralSearchTest extends BaseTest {
|
|||||||
// This test does generate network traffic and communicates with a host
|
// This test does generate network traffic and communicates with a host
|
||||||
// you may not be able to reach. Remove the @Ignore annotation if you want to
|
// you may not be able to reach. Remove the @Ignore annotation if you want to
|
||||||
// test it anyway
|
// test it anyway
|
||||||
@Test(expected = FileNotFoundException.class)
|
@Test(expected = IOException.class)
|
||||||
public void testMissingSha1() throws Exception {
|
public void testMissingSha1() throws Exception {
|
||||||
searcher.searchSha1("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
|
searcher.searchSha1("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user