Skip to content

Align the shared test base classes with master - #938

Merged
slachiewicz merged 1 commit into
wagon-3.xfrom
converge-with-master-3x
Aug 18, 2026
Merged

Align the shared test base classes with master#938
slachiewicz merged 1 commit into
wagon-3.xfrom
converge-with-master-3x

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

These test classes drifted from master, which modernised them in passing: try-with-resources
instead of IOUtil.close in a finally, java.nio.file.Files instead of plexus-util
FileUtils, and a conents typo. This takes master's versions so the two lines stop diverging
in files that every provider migration has to touch.

Two files that also differ are deliberately left alone. HttpWagonTests is a published TCK
class and master removed getConfigurator(), getRepo(), getTmpfiles() and
getPortPropertyValue() from it — that is a 4.0 API drop, not drift, and it should not reach a
patch line. In wagon-webdav-jackrabbit/pom.xml the only difference beyond the version is a
comment master shortened, where this line's longer wording says more.

One change is not cosmetic: FtpWagonTest had assertTrue(true) in a catch block, which
asserts nothing, and master replaced it with assertNotNull(e.getMessage()). That test now
checks something it did not check before.

Verified: per-class <testcase> counts in the surefire XML are unchanged against 321d4603
across all 30 test classes, with no new errors, failures or skips.

This change was created with AI assistance.

FtpWagonTest had assertTrue(true) in a catch block, which asserts nothing; it now
checks the exception message. HttpWagonTests is left diverged on purpose: master
dropped protected members from that published TCK class for 4.0.
@slachiewicz
slachiewicz marked this pull request as ready for review August 18, 2026 20:23
@slachiewicz
slachiewicz merged commit b557bda into wagon-3.x Aug 18, 2026
6 checks passed
@slachiewicz
slachiewicz deleted the converge-with-master-3x branch August 18, 2026 20:24
@github-actions github-actions Bot added this to the 3.5.4 milestone Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant