From 35c75e4aa15a8d3de81d3ca439f76e9ba6e2d2d8 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sun, 10 Nov 2024 06:27:16 -0500 Subject: [PATCH] Remove invocations of now deprecated methods we want to delete --- .../org/apache/maven/plugins/dependency/TestCollectMojo.java | 2 -- .../plugins/dependency/fromConfiguration/TestCopyMojo.java | 1 - .../plugins/dependency/fromConfiguration/TestUnpackMojo.java | 2 -- .../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 265bb17a27..9e86c813a0 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 void testCollectTestEnvironment() throws Exception { assertNotNull(mojo.getProject()); MavenProject project = mojo.getProject(); - mojo.setSilent(true); Set artifacts = this.stubFactory.getScopedArtifacts(); Set directArtifacts = this.stubFactory.getReleaseAndSnapshotArtifacts(); artifacts.addAll(directArtifacts); @@ -83,7 +82,6 @@ public void testCollectTestEnvironment_excludeTransitive() throws Exception { assertNotNull(mojo.getProject()); MavenProject project = mojo.getProject(); - mojo.setSilent(true); Set artifacts = this.stubFactory.getScopedArtifacts(); Set 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 4390f9bf7d..3af9f1fced 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 @@ protected void setUp() throws Exception { 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 66614da7c3..f18776fb08 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 @@ protected void setUp() throws Exception { 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 void testUnpackOverWriteSnapshot() throws Exception { 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 720d13f7b3..2bdcb6fc87 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 void testResolveTestEnvironment() throws Exception { assertNotNull(mojo.getProject()); MavenProject project = mojo.getProject(); - mojo.setSilent(true); Set artifacts = this.stubFactory.getScopedArtifacts(); Set directArtifacts = this.stubFactory.getReleaseAndSnapshotArtifacts(); artifacts.addAll(directArtifacts);