yuehcw opened a new pull request, #1538: URL: https://github.com/apache/maven/pull/1538
### Description This pull request adds a new test case to the `DependencyTest` class to verify the correct functionality of exclusion handling within the `Dependency` class. ### Changes - **New Test Case**: - `testDependencyExclusions`: - This test aims to verify that the `addExclusion` method in the `Dependency` class correctly adds exclusions. - It creates an `Exclusion` object and sets its `groupId` and `artifactId`. - The exclusion is added to the dependency using the `dependency.addExclusion(exclusion)` method. - The test verifies that the size of the exclusions list in the dependency is 1. - It checks that the `groupId` and `artifactId` of the added exclusion are correct. ### Purpose The purpose of this test case is to ensure that the exclusion handling functionality within the `Dependency` class works correctly. This is crucial for dependency management during the build process. With this test case, we can: 1. Ensure the correct functionality of the exclusion handling in the `Dependency` class. 2. Enhance the stability and reliability of the project code. 3. Provide a safety net for future improvements and refactoring to prevent regression. -- 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