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/07/06 10:43:25 UTC

[maven-dependency-plugin] branch fail created (now a30e83f)

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

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


      at a30e83f  exceptions fail tests

This branch includes the following new commits:

     new a30e83f  exceptions fail tests

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: exceptions fail tests

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

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

commit a30e83fbb9e31e61847e62e397523e97d677ee16
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Jul 6 06:43:10 2020 -0400

    exceptions fail tests
---
 .../fromDependencies/TestCopyDependenciesMojo.java           | 12 ++----------
 1 file changed, 2 insertions(+), 10 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 f6fe820..6d588a2 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
@@ -79,18 +79,10 @@ public class TestCopyDependenciesMojo
         setVariableValueToObject( mojo, "artifactHandlerManager", manager );
     }
 
-    public void assertNoMarkerFile( Artifact artifact )
+    public void assertNoMarkerFile( Artifact artifact ) throws MojoExecutionException
     {
         DefaultFileMarkerHandler handle = new DefaultFileMarkerHandler( artifact, mojo.markersDirectory );
-        try
-        {
-            assertFalse( handle.isMarkerSet() );
-        }
-        catch ( MojoExecutionException e )
-        {
-            fail( e.getLongMessage() );
-        }
-
+        assertFalse( handle.isMarkerSet() );
     }
 
     public void testCopyFile()