You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/08/17 22:38:48 UTC
[maven-dependency-plugin] 01/01: JUnit4 Assumptions
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 353ca210c720278b42e4dca1e7f3f3c34c439c9a
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Mon Aug 17 21:07:10 2020 +0200
JUnit4 Assumptions
---
pom.xml | 3 ++-
.../dependency/fromConfiguration/TestCopyMojo.java | 15 ++++++++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6512557..d8b510e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -200,7 +200,7 @@ under the License.
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-dependency-analyzer</artifactId>
- <version>1.11.3-SNAPSHOT</version>
+ <version>1.11.2</version>
<exclusions>
<exclusion>
<artifactId>maven-project</artifactId>
@@ -388,6 +388,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);
+ }
}