You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/02/24 11:28:56 UTC

(maven-install-plugin) 01/01: Delete commented code

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

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

commit 69c2edb08591d219bdb72276054509946872e607
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Feb 24 06:28:49 2025 -0500

    Delete commented code
---
 .../maven/plugins/install/InstallMojoPomPackagingTest.java    | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java b/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java
index 550ea33..1c95850 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java
@@ -112,7 +112,6 @@ public class InstallMojoPomPackagingTest {
         when(session.getArtifact(any()))
                 .thenAnswer(iom -> new org.apache.maven.internal.impl.DefaultArtifact(
                         session, iom.getArgument(0, org.eclipse.aether.artifact.Artifact.class)));
-        //        when(session.getMavenSession()).thenAnswer(iom -> new MavenSession(null, null, null));
         return session;
     }
 
@@ -127,16 +126,6 @@ public class InstallMojoPomPackagingTest {
         project.setArtifactId("maven-install-test");
         project.setVersion("1.0-SNAPSHOT");
         project.setPackaging("pom");
-        //        DefaultArtifact artifact = new DefaultArtifact(
-        //                "org.apache.maven.test",
-        //                "maven-install-test",
-        //                "1.0-SNAPSHOT",
-        //                null,
-        //                "pom",
-        //                null,
-        //                new DefaultArtifactHandlerStub("pom"));
-        //        project.setArtifact(artifact);
-        //        project.setAttachedArtifacts(new ArrayList<>());
         return project;
     }