wuwen5 commented on code in PR #196: URL: https://github.com/apache/maven-release/pull/196#discussion_r1877095588
########## maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/MapVersionsPhaseTest.java: ########## @@ -2452,6 +2453,9 @@ private static MavenProject createProject(String artifactId, String version) { model.setGroupId("groupId"); model.setArtifactId(artifactId); model.setVersion(version); - return new MavenProject(model); + + MavenProject mavenProject = new MavenProject(model); Review Comment: In the previous test cases, the `file` field in the mock object of `MavenProject` was null, which led to an exception. To address this, null detection has been implemented, and new test cases have been added. -- 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