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

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

commit 6a9e1e708c5dc32429a14fd0bf48b4098a7de10a
Author: Piotrek Żygieło <[email protected]>
AuthorDate: Mon Aug 17 21:07:10 2020 +0200

    JUnit4 Assumptions
---
 pom.xml                                                   |  1 +
 .../dependency/fromConfiguration/TestCopyMojo.java        | 15 ++++++++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 22907b9..c60c714 100644
--- a/pom.xml
+++ b/pom.xml
@@ -441,6 +441,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.22.2</version>
         <configuration>
           <!-- Need more heap space in order to run the unit tests !-->
           <argLine>-Xmx384m</argLine>
diff --git 
a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestCopyMojo.java
 
b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestCopyMojo.java
index 52fa4e9..3c4e9b1 100644
--- 
a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestCopyMojo.java
+++ 
b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestCopyMojo.java
@@ -34,13 +34,20 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugins.dependency.AbstractDependencyMojoTestCase;
 import org.apache.maven.plugins.dependency.utils.DependencyUtil;
 import org.apache.maven.project.MavenProject;
+import org.junit.Assume;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.BlockJUnit4ClassRunner;
 
+@RunWith(BlockJUnit4ClassRunner.class)
 public class TestCopyMojo
     extends AbstractDependencyMojoTestCase
 {
     private CopyMojo mojo;
 
-    protected void setUp()
+    @Before
+    public void setUp()
         throws Exception
     {
         super.setUp( "copy", false, false );
@@ -82,6 +89,7 @@ public class TestCopyMojo
         assertNull( item.getClassifier() );
     }
 
+    @Test
     public void testSetArtifactWithoutClassifier()
         throws Exception
     {
@@ -806,4 +814,9 @@ public class TestCopyMojo
                                     classifier );
         return item;
     }
+
+    @Test
+    public void testAssumption() {
+        Assume.assumeFalse(true);
+    }
 }

Reply via email to