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:16:39 UTC

[maven-dependency-plugin] branch ex2 created (now 616d016)

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

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


      at 616d016  remove unthrown exceptions

This branch includes the following new commits:

     new 616d016  remove unthrown exceptions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 616d016d129a4f384be3058b32e2c7b0660d5dc0
Author: Elliotte Rusty Harold <el...@google.com>
AuthorDate: Tue Mar 3 17:16:25 2020 -0500

    remove unthrown exceptions
---
 .../maven/plugins/dependency/utils/TestDependencyUtil.java | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/dependency/utils/TestDependencyUtil.java b/src/test/java/org/apache/maven/plugins/dependency/utils/TestDependencyUtil.java
index 2ea2fc5..2d420a9 100644
--- a/src/test/java/org/apache/maven/plugins/dependency/utils/TestDependencyUtil.java
+++ b/src/test/java/org/apache/maven/plugins/dependency/utils/TestDependencyUtil.java
@@ -30,7 +30,6 @@ import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.DefaultArtifact;
 import org.apache.maven.artifact.handler.ArtifactHandler;
 import org.apache.maven.artifact.versioning.VersionRange;
-import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.logging.Log;
 import org.apache.maven.plugin.testing.SilentLog;
 import org.apache.maven.plugin.testing.stubs.DefaultArtifactHandlerStub;
@@ -56,6 +55,7 @@ public class TestDependencyUtil
 
     Artifact sources;
 
+    @Override
     protected void setUp()
         throws Exception
     {
@@ -89,13 +89,7 @@ public class TestDependencyUtil
         assertFalse( outputFolder.exists() );
     }
 
-    protected void tearDown()
-    {
-
-    }
-
     public void testDirectoryName()
-        throws MojoExecutionException
     {
         File folder = new File( "target/a" );
         final Artifact artifact = artifacts.get( 0 );
@@ -142,7 +136,6 @@ public class TestDependencyUtil
     }
 
     public void testDirectoryName2()
-        throws MojoExecutionException
     {
         File folder = new File( "target/a" );
         final Artifact artifact = artifacts.get( 1 );
@@ -178,7 +171,6 @@ public class TestDependencyUtil
     }
 
     public void testDirectoryNameSources()
-        throws MojoExecutionException
     {
         File folder = new File( "target/a" );
         File name = DependencyUtil.getFormattedOutputDirectory( false, false, true, false, true, folder, sources );
@@ -191,7 +183,6 @@ public class TestDependencyUtil
     }
 
     public void testFileName()
-        throws MojoExecutionException
     {
         Artifact artifact = artifacts.get( 0 );
 
@@ -204,7 +195,6 @@ public class TestDependencyUtil
     }
 
     public void testFileNameUseBaseVersion()
-        throws MojoExecutionException
     {
         Artifact artifact = snapResolvedVersion;
 
@@ -230,7 +220,6 @@ public class TestDependencyUtil
     }
 
     public void testFileNameClassifier()
-        throws MojoExecutionException
     {
         ArtifactHandler ah = new DefaultArtifactHandlerStub( "jar", "sources" );
         VersionRange vr = VersionRange.createFromVersion( "1.1-SNAPSHOT" );
@@ -257,7 +246,6 @@ public class TestDependencyUtil
     }
 
     public void testFileNameClassifierWithFile()
-        throws MojoExecutionException
     {
         // specifically testing the default operation that getFormattedFileName
         // returns