gnodet opened a new pull request, #11353:
URL: https://github.com/apache/maven/pull/11353

   This PR modernizes several integration tests by cleaning up redundant JRE 
version checks and simplifying test logic.
   
   ## Changes
   
   1. **Replaced deprecated annotations**: Updated `@DisabledOnJre` to 
`@EnabledForJreRange` where needed
   2. **Removed redundant JRE checks**: Since Maven 4 requires JDK 17, removed 
unnecessary `@EnabledForJreRange(min = JRE.JAVA_17)` annotations
   3. **Simplified test logic**: Cleaned up test methods and removed 
unnecessary comments
   4. **Updated imports**: Removed unused JUnit condition classes
   
   ## Files Modified
   
   - `MavenITgh10312TerminallyDeprecatedMethodInGuiceTest`: Simplified test 
logic and updated JRE annotations
   - `MavenITmng4747JavaAgentUsedByPluginTest`: Removed redundant JRE 
annotations and comments
   - `MavenITmng7045DropUselessAndOutdatedCdiApiTest`: Removed redundant JRE 
annotations and comments
   - `MavenITmng7470ResolverTransportTest`: Simplified test method structure
   - `AbstractMavenIntegrationTestCase`: Added utility method for JRE version 
checking
   
   ## Testing
   
   All affected integration tests have been verified to pass:
   - `MavenITmng7045DropUselessAndOutdatedCdiApiTest` ✅
   - `MavenITmng4747JavaAgentUsedByPluginTest` ✅
   - `MavenITmng7470ResolverTransportTest` ✅
   
   Full build completed successfully with `mvn install -DskipTests`.
   
   ## Rationale
   
   Since Maven 4 requires JDK 17 as a minimum, JRE version checks for older 
versions are redundant. This cleanup:
   - Reduces code complexity
   - Removes unnecessary annotations
   - Modernizes the test infrastructure
   - Maintains backward compatibility
   
   The changes are purely cosmetic and don't affect test functionality.
   
   ---
   Pull Request opened by [Augment Code](https://www.augmentcode.com/) with 
guidance from the PR author


-- 
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]

Reply via email to