Bukama commented on code in PR #619:
URL:
https://github.com/apache/maven-project-info-reports-plugin/pull/619#discussion_r2807913945
##########
src/test/java/org/apache/maven/report/projectinfo/PluginManagementReportTest.java:
##########
@@ -117,12 +134,15 @@ public void testReport() throws Exception {
* @throws Exception if any
*/
@Test
- public void testReportEclipseM2EPluginLifecycleMapping() throws Exception {
- generateReport(getGoal(),
"plugin-management-plugin-config-MPIR-375.xml");
- org.junit.jupiter.api.Assertions.assertTrue(
- getGeneratedReport("plugin-management.html").exists(), "Test
html generated");
-
- URL reportURL =
getGeneratedReport("plugin-management.html").toURI().toURL();
+ @InjectMojo(goal = "plugin-management", pom =
"plugin-management-plugin-config-MPIR-375.xml")
+ public void
testReportEclipseM2EPluginLifecycleMapping(PluginManagementReport mojo) throws
Exception {
+ readMavenProjectModel(mavenProject,
"plugin-management-plugin-config-MPIR-375.xml");
+ mojo.execute();
+
+ URL reportURL =
getTestFile("target/plugin-management-375/plugin-management.html")
+ .toURI()
+ .toURL();
+ // URL reportURL =
getGeneratedReport("plugin-management.html").toURI().toURL();
Review Comment:
remove
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]