From 116ef264e1defe069141e9085959f8a3de24731a Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Wed, 26 Apr 2017 08:59:53 -0400 Subject: [PATCH] updated failing test case to expect the correct exception --- .../owasp/dependencycheck/data/central/CentralSearchTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependency-check-core/src/test/java/org/owasp/dependencycheck/data/central/CentralSearchTest.java b/dependency-check-core/src/test/java/org/owasp/dependencycheck/data/central/CentralSearchTest.java index a3710f2f3..a23f4e866 100644 --- a/dependency-check-core/src/test/java/org/owasp/dependencycheck/data/central/CentralSearchTest.java +++ b/dependency-check-core/src/test/java/org/owasp/dependencycheck/data/central/CentralSearchTest.java @@ -8,7 +8,7 @@ import org.owasp.dependencycheck.utils.Settings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.FileNotFoundException; +import java.io.IOException; import java.net.URL; import java.util.List; @@ -50,7 +50,7 @@ public class CentralSearchTest extends BaseTest { // 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 // test it anyway - @Test(expected = FileNotFoundException.class) + @Test(expected = IOException.class) public void testMissingSha1() throws Exception { searcher.searchSha1("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); }