elharo opened a new pull request, #182: URL: https://github.com/apache/maven-toolchains-plugin/pull/182
Refs #167 Adds unit tests for the `matches()` method in `SelectJdkToolchainMojo` to verify version matching behavior. Uses reflection to test the private method without changing source code visibility. Tests confirm that `RequirementMatcherFactory.createVersionMatcher()` is called with the correct argument order: - `createVersionMatcher(tcVal).matches(reqVal)` where `tcVal` is the toolchain's concrete version and `reqVal` is the user's requirement (which may be a range like `"[11,17)"`). All 3 tests pass against the current code, confirming the existing implementation is correct. -- 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]
