You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/03/03 22:28:20 UTC

[maven-dependency-plugin] 02/02: remove unthrown exceptions

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch ex3
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git

commit 63f6839cb5b10e0c14cf76424ec224a4aedc6989
Author: Elliotte Rusty Harold <el...@google.com>
AuthorDate: Tue Mar 3 17:28:00 2020 -0500

    remove unthrown exceptions
---
 .../fromDependencies/TestCopyDependenciesMojo.java  | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo.java b/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo.java
index b90cfd3..3755266 100644
--- a/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo.java
+++ b/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo.java
@@ -44,6 +44,7 @@ public class TestCopyDependenciesMojo
 
     CopyDependenciesMojo mojo;
 
+    @Override
     protected void setUp()
         throws Exception
     {
@@ -485,20 +486,14 @@ public class TestCopyDependenciesMojo
         }
     }
 
-    public void testArtifactNotFound()
-        throws Exception
-    {
-        dotestArtifactExceptions( false, true );
-    }
-
     public void testArtifactResolutionException()
-        throws Exception
+        throws MojoFailureException
     {
-        dotestArtifactExceptions( true, false );
+        dotestArtifactExceptions();
     }
 
-    public void dotestArtifactExceptions( boolean are, boolean anfe )
-        throws Exception
+    public void dotestArtifactExceptions()
+        throws MojoFailureException
     {
         mojo.classifier = "jdk";
         mojo.type = "java-sources";
@@ -552,7 +547,7 @@ public class TestCopyDependenciesMojo
     }
 
     public void testOverWriteRelease()
-        throws MojoExecutionException, InterruptedException, IOException, MojoFailureException
+        throws MojoExecutionException, IOException, MojoFailureException
     {
 
         Set<Artifact> artifacts = new HashSet<>();
@@ -584,7 +579,7 @@ public class TestCopyDependenciesMojo
     }
 
     public void testDontOverWriteSnap()
-        throws MojoExecutionException, InterruptedException, IOException, MojoFailureException
+        throws MojoExecutionException, IOException, MojoFailureException
     {
 
         Set<Artifact> artifacts = new HashSet<>();
@@ -615,7 +610,7 @@ public class TestCopyDependenciesMojo
     }
 
     public void testOverWriteSnap()
-        throws MojoExecutionException, InterruptedException, IOException, MojoFailureException
+        throws MojoExecutionException, IOException, MojoFailureException
     {
 
         Set<Artifact> artifacts = new HashSet<>();