krsumit193-crypto opened a new pull request, #2364:
URL: https://github.com/apache/maven-resolver/pull/2364

   Contributes to #1347.
   
   This adds the shared, language-independent test data requested in the issue 
and a JUnit 5 parameterized test that consumes it.
   
   ## Changes
   
   - `maven-resolver-util/src/test/resources/version-comparison-cases.tsv` — 
176 cases in three tab-separated columns: `left`, `right`, `expected` (`LT`, 
`EQ`, `GT`). Extracted from the existing `GenericVersionTest` assertions, 
deduplicated, with Apache-2.0 header.
   - `maven-resolver-util/src/test/resources/version-comparison-cases.md` — 
documents the format and how other implementations can reuse the file.
   - `maven-resolver-util/src/test/java/.../VersionComparisonDataTest.java` — 
parameterized test that loads the TSV from the classpath and runs `assertOrder` 
for every case against `GenericVersion`.
   
   The data file is plain text on purpose: Maven core's `ComparableVersion`, 
Gradle or a semver library can use the same cases without depending on this 
Java test suite.
   
   No behavioural discrepancies were found — all 176 cases match 
`GenericVersion`'s current behaviour. The existing Java tests are left in 
place; removing the duplicated inline assertions can be a clean follow-up.
   
   ## Verification
   
   - `VersionComparisonDataTest`: **176 tests, 0 failures**
   - Full `maven-resolver-util` module: **659 tests, 0 failures**
   - `mvn -pl maven-resolver-util -am -DskipTests verify`: clean (RAT, 
Spotless, japicmp)
   


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