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

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

commit 35c75e4aa15a8d3de81d3ca439f76e9ba6e2d2d8
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Sun Nov 10 06:27:16 2024 -0500

    Remove invocations of now deprecated methods we want to delete
---
 src/test/java/org/apache/maven/plugins/dependency/TestCollectMojo.java  | 2 --
 .../apache/maven/plugins/dependency/fromConfiguration/TestCopyMojo.java | 1 -
 .../maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java      | 2 --
 .../org/apache/maven/plugins/dependency/resolvers/TestResolveMojo.java  | 1 -
 4 files changed, 6 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugins/dependency/TestCollectMojo.java 
b/src/test/java/org/apache/maven/plugins/dependency/TestCollectMojo.java
index 265bb17a..9e86c813 100644
--- a/src/test/java/org/apache/maven/plugins/dependency/TestCollectMojo.java
+++ b/src/test/java/org/apache/maven/plugins/dependency/TestCollectMojo.java
@@ -56,7 +56,6 @@ public class TestCollectMojo extends 
AbstractDependencyMojoTestCase {
         assertNotNull(mojo.getProject());
         MavenProject project = mojo.getProject();
 
-        mojo.setSilent(true);
         Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
         Set<Artifact> directArtifacts = 
this.stubFactory.getReleaseAndSnapshotArtifacts();
         artifacts.addAll(directArtifacts);
@@ -83,7 +82,6 @@ public class TestCollectMojo extends 
AbstractDependencyMojoTestCase {
         assertNotNull(mojo.getProject());
         MavenProject project = mojo.getProject();
 
-        mojo.setSilent(true);
         Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
         Set<Artifact> directArtifacts = 
this.stubFactory.getReleaseAndSnapshotArtifacts();
         artifacts.addAll(directArtifacts);
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 4390f9bf..3af9f1fc 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
@@ -49,7 +49,6 @@ public class TestCopyMojo extends 
AbstractDependencyMojoTestCase {
         File testPom = new File(getBasedir(), 
"target/test-classes/unit/copy-test/plugin-config.xml");
         mojo = (CopyMojo) lookupMojo("copy", testPom);
         mojo.setOutputDirectory(new File(this.testDir, "outputDirectory"));
-        mojo.setSilent(true);
 
         assertNotNull(mojo);
         assertNotNull(mojo.getProject());
diff --git 
a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
 
b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
index 66614da7..f18776fb 100644
--- 
a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
+++ 
b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
@@ -58,7 +58,6 @@ public class TestUnpackMojo extends 
AbstractDependencyMojoTestCase {
         mojo = (UnpackMojo) lookupMojo("unpack", testPom);
         mojo.setOutputDirectory(new File(this.testDir, "outputDirectory"));
         mojo.setMarkersDirectory(new File(this.testDir, "markers"));
-        mojo.setSilent(true);
 
         assertNotNull(mojo);
         assertNotNull(mojo.getProject());
@@ -477,7 +476,6 @@ public class TestUnpackMojo extends 
AbstractDependencyMojoTestCase {
     public void testUnpackOverWriteIfNewer() throws Exception {
         final long now = System.currentTimeMillis();
 
-        mojo.setSilent(false);
         stubFactory.setCreateFiles(true);
         Artifact artifact = stubFactory.getSnapshotArtifact();
         assertTrue(artifact.getFile().setLastModified(now - 20000));
diff --git 
a/src/test/java/org/apache/maven/plugins/dependency/resolvers/TestResolveMojo.java
 
b/src/test/java/org/apache/maven/plugins/dependency/resolvers/TestResolveMojo.java
index 720d13f7..2bdcb6fc 100644
--- 
a/src/test/java/org/apache/maven/plugins/dependency/resolvers/TestResolveMojo.java
+++ 
b/src/test/java/org/apache/maven/plugins/dependency/resolvers/TestResolveMojo.java
@@ -56,7 +56,6 @@ public class TestResolveMojo extends 
AbstractDependencyMojoTestCase {
         assertNotNull(mojo.getProject());
         MavenProject project = mojo.getProject();
 
-        mojo.setSilent(true);
         Set<Artifact> artifacts = this.stubFactory.getScopedArtifacts();
         Set<Artifact> directArtifacts = 
this.stubFactory.getReleaseAndSnapshotArtifacts();
         artifacts.addAll(directArtifacts);

Reply via email to