kwin commented on code in PR #173:
URL: 
https://github.com/apache/maven-doxia-sitetools/pull/173#discussion_r1772030115


##########
doxia-integration-tools/src/test/java/org/apache/maven/doxia/tools/SiteToolTest.java:
##########
@@ -70,46 +66,16 @@
 @PlexusTest
 public class SiteToolTest {
 
-    @Inject
-    private PlexusContainer container;
-
-    @Inject
-    private ArtifactRepositoryFactory artifactRepositoryFactory;
-
-    @Inject
-    @Named("default")
-    private ArtifactRepositoryLayout defaultArtifactRepositoryLayout;
-
     @Inject
     private DefaultSiteTool tool;
 
-    /**
-     * @return the repo.
-     *
-     * @throws Exception
-     */
-    protected ArtifactRepository getLocalRepo() throws Exception {
-        String updatePolicyFlag = 
ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS;
-        String checksumPolicyFlag = 
ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN;
-        ArtifactRepositoryPolicy snapshotsPolicy =
-                new ArtifactRepositoryPolicy(true, updatePolicyFlag, 
checksumPolicyFlag);
-        ArtifactRepositoryPolicy releasesPolicy =
-                new ArtifactRepositoryPolicy(true, updatePolicyFlag, 
checksumPolicyFlag);
-        return artifactRepositoryFactory.createArtifactRepository(
-                "local",
-                getTestFile("target/local-repo").toURI().toURL().toString(),
-                defaultArtifactRepositoryLayout,
-                snapshotsPolicy,
-                releasesPolicy);
-    }
-

Review Comment:
   Because it was unused in the test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to