slachiewicz opened a new pull request, #928:
URL: https://github.com/apache/maven-wagon/pull/928

   Continues `a8cafa27` with the three tests in `wagon-http` that do not extend 
the bases published from
   `wagon-provider-test`. Those bases stay on `PlexusTestCase`: external 
providers inherit their test
   methods by the `testXxx()` convention, so moving them to `@Test` would leave 
any consumer on JUnit 4
   running none of the inherited tests, with a green build.
   
   `wagon-http` keeps `junit` and gains `junit-vintage-engine` alongside 
`junit-jupiter`. `HttpWagonTest`,
   `HttpsWagonTest` and both Preemptive variants inherit from the published 
`HttpWagonTestCase` — 58 tests
   each — and surefire provisions the jupiter engine but not the vintage one. 
No versions are needed;
   `maven-parent` 49 imports `junit-bom`.
   
   Nothing here needed `assertThrows` or Hamcrest work: no `@Test(expected=…)`, 
no `@Test(timeout=…)`, no
   `@Ignore`, no `assertThat`, and no message-carrying assertions whose 
argument order would flip.
   
   Verified: `mvn test` on `wagon-http` before and after, comparing per class. 
295 test cases before, 295
   after; the same two `proxied` tests skipped in both.
   
   | | before | after |
   |---|---|---|
   | AbstractHttpClientWagonTest | 4 | 4 |
   | BasicAuthScopeTest | 5 | 5 |
   | HttpClientWagonTest | 3 | 3 |
   | HttpWagonTest / HttpsWagonTest | 58 / 58 | 58 / 58 |
   | HttpWagonPreemptiveTest / HttpsWagonPreemptiveTest | 58 / 58 | 58 / 58 |
   | HttpWagonErrorTest / HttpWagonTimeoutTest | 5 / 4 | 5 / 4 |
   | HugeFileDownloadTest / TckTest | 2 / 40 | 2 / 40 |
   
   Worth knowing if you check this yourself: once the platform provider is in 
play, the `tests=`
   attribute surefire writes for `TckTest` reads 20 rather than 40, because 
that class is a JUnit 4
   `@RunWith(Suite.class)` aggregating two suites. The report still carries all 
40 `<testcase>` elements
   and both suites run — counting the attribute rather than the elements makes 
it look like twenty tests
   were lost.
   
   *This change was created with AI assistance.*


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