Repository navigation
Move the tests off JUnit 4 and the JUnit 3 plugin testing harness - #886
Merged
Merged
Conversation
slachiewicz
marked this pull request as ready for review
October 31, 2026 10:13
xmlunit-legacy brings junit 3.8.1, and surefire adds the vintage engine whenever JUnit is on the test classpath, so ComponentsXmlResourceTransformerTest uses xmlunit-core instead.
They had no Hamcrest imports, so master failed to compile its tests.
slachiewicz
force-pushed
the
mshade-junit5
branch
from
October 31, 2026 11:31
12cb6d7 to
8ce5f4f
Compare
This was referenced Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ShadeMojoTestwas the last test on the JUnit 3AbstractMojoTestCase. It now uses@MojoTest, with the container,Shader,ArtifactHandlerand project injected, and theshademojo from@InjectMojo. With that, the tests need neither JUnit 4 nor the vintage engine.DefaultShaderTestuses plain JUnit 5 assertions instead of Hamcrest. ItsassertThat/containsStringcalls had no imports, which is why master currently fails to compile the tests.ComponentsXmlResourceTransformerTestmoves fromxmlunit-legacytoxmlunit-core. The legacy module bringsjunit:3.8.1, and surefire adds the vintage engine whenever JUnit is on the test classpath, so leaving it would break test discovery.ignoreComments()keeps the old result: the only comment in those files is the license header, which the merged output does not carry.Verified:
mvn verify -Dinvoker.skip→ 121 tests, 0 failures, 1 skipped (assumeTrue(isModularRuntime()))