slachiewicz opened a new pull request, #399: URL: https://github.com/apache/maven-jxr/pull/399
The four token-shape tests in `SimpleWordTokenizerTest` were copy-pasted and differed only in the source string and the indexes of the last two tokens. - Replaced `compact`, `spacesAroundParenOpen`, `spaceBeforeParenOpen` and `spaceAfterParenOpen` with one `@ParameterizedTest` + `@MethodSource` supplying the source and the two variable indexes. - Kept `withIndent` as a plain `@Test` and preserved all assertions on token text and indexes (5 test invocations before and after). - Added test-scoped `junit-jupiter-params` with no version to `maven-jxr/pom.xml` (managed by the imported JUnit BOM). Tracking: #14072 Verified: `JAVA_HOME=21 mvn -B -o test` → BUILD SUCCESS; `SimpleWordTokenizerTest` `Tests run: 5, Failures: 0, Errors: 0` (baseline 5 → 5), module totals 16 and 18. Mutation check: breaking `tokenize` index calculation (`matcher.start() + start + 1`) made all 5 test invocations fail (`expected: <0> but was: <1>`, `expected: <26> but was: <27>`); production file restored from a saved scratch copy and re-verified green. -- 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]
