mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-29 05:12:14 +02:00
Please PMD
This commit is contained in:
@@ -53,6 +53,7 @@ public class CentralAnalyzerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("PMD.NonStaticInitializer")
|
||||||
public void testFetchMavenArtifactsWithSporadicIOException(@Mocked final CentralSearch centralSearch,
|
public void testFetchMavenArtifactsWithSporadicIOException(@Mocked final CentralSearch centralSearch,
|
||||||
@Mocked final Dependency dependency)
|
@Mocked final Dependency dependency)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
@@ -77,6 +78,7 @@ public class CentralAnalyzerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = FileNotFoundException.class)
|
@Test(expected = FileNotFoundException.class)
|
||||||
|
@SuppressWarnings("PMD.NonStaticInitializer")
|
||||||
public void testFetchMavenArtifactsRethrowsFileNotFoundException(@Mocked final CentralSearch centralSearch,
|
public void testFetchMavenArtifactsRethrowsFileNotFoundException(@Mocked final CentralSearch centralSearch,
|
||||||
@Mocked final Dependency dependency)
|
@Mocked final Dependency dependency)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
@@ -96,6 +98,7 @@ public class CentralAnalyzerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IOException.class)
|
@Test(expected = IOException.class)
|
||||||
|
@SuppressWarnings("PMD.NonStaticInitializer")
|
||||||
public void testFetchMavenArtifactsAlwaysThrowsIOException(@Mocked final CentralSearch centralSearch,
|
public void testFetchMavenArtifactsAlwaysThrowsIOException(@Mocked final CentralSearch centralSearch,
|
||||||
@Mocked final Dependency dependency)
|
@Mocked final Dependency dependency)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|||||||
Reference in New Issue
Block a user