Skip to content

Migrate the embedder-test-project fixture to JUnit 5 - #12717

Merged
slachiewicz merged 1 commit into
maven-3.10.xfrom
agent/junit5-maven-3
Aug 9, 2026
Merged

slachiewicz merged 1 commit into
maven-3.10.xfrom
agent/junit5-maven-3

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The embedder-test-project sample under maven-embedder/src/test is a standalone, un-parented fixture project (its own groupId/artifactId/version) that exists as filesystem input data. It is not part of the reactor and no test code references it, so nothing in the build compiles or runs it.

This converts its archetype-generated AppTest from JUnit 3.8.1 to JUnit 5 Jupiter and bumps its pinned surefire-plugin from 2.4.3, so the fixture still builds and runs standalone if someone invokes it by hand.

Scope, stated plainly: this is deliberately narrow. Roughly 20 other fixture projects under maven-embedder/src/test and maven-core/src/test still declare junit:junit, and maven-compat still has real JUnit 4 test code. This PR does not touch any of them. If the preference is to do the fixtures in one sweep rather than piecemeal, say so and I will fold this into a single change instead.

maven-embedder/src/test no longer exists on master, so this applies to the 3.x line only.

The embedder-test-project sample under maven-embedder/src/test is a
standalone, un-parented fixture project (own groupId/artifactId/version)
used as filesystem input data. It is not part of the reactor and no test
code references it, so nothing in the build compiles or runs it.

Convert its archetype-generated AppTest from JUnit 3.8.1 to JUnit 5
Jupiter and bump its pinned surefire-plugin from 2.4.3 so the fixture
still builds and runs standalone if invoked by hand.

Other fixture projects under maven-embedder/src/test and
maven-core/src/test still declare junit:junit; this commit does not
touch them.

Generated-by: Claude Opus 5 (1M context)
@slachiewicz
slachiewicz marked this pull request as ready for review August 9, 2026 21:26
@slachiewicz
slachiewicz merged commit b9afe09 into maven-3.10.x Aug 9, 2026
22 checks passed
@slachiewicz
slachiewicz deleted the agent/junit5-maven-3 branch August 9, 2026 23:56
@github-actions github-actions Bot added this to the 3.10.0 milestone Aug 9, 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