You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2019/01/01 21:47:19 UTC

[maven-scm] 03/05: Align assertion with other tests

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

michaelo pushed a commit to branch SCM-318
in repository https://gitbox.apache.org/repos/asf/maven-scm.git

commit 3c8a654ac91ba162793ba20cf4b1a92c8eeac68e
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Tue Jan 1 22:20:11 2019 +0100

    Align assertion with other tests
---
 .../src/test/java/org/apache/maven/scm/plugin/UntagMojoTest.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/maven-scm-plugin/src/test/java/org/apache/maven/scm/plugin/UntagMojoTest.java b/maven-scm-plugin/src/test/java/org/apache/maven/scm/plugin/UntagMojoTest.java
index 3c1d58d..7774c05 100644
--- a/maven-scm-plugin/src/test/java/org/apache/maven/scm/plugin/UntagMojoTest.java
+++ b/maven-scm-plugin/src/test/java/org/apache/maven/scm/plugin/UntagMojoTest.java
@@ -20,6 +20,8 @@ package org.apache.maven.scm.plugin;
  */
 
 import java.io.File;
+
+import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.testing.AbstractMojoTestCase;
 import org.apache.maven.scm.provider.git.GitScmTestUtils;
 import org.codehaus.plexus.util.FileUtils;
@@ -102,10 +104,12 @@ public class UntagMojoTest
         try
         {
             checkoutMojo.execute();
-            fail( "checkoutMojo should have failed to check out deleted tag" );
+
+            fail( "mojo execution must fail." );
         }
-        catch ( Exception expected )
+        catch ( MojoExecutionException e )
         {
+            assertTrue( true );
         }
     }