Skip to content

chore: drop JUnit 4 from target and bundle manifests#1326

Merged
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/drop-junit4-target-step-3
May 22, 2026
Merged

chore: drop JUnit 4 from target and bundle manifests#1326
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/drop-junit4-target-step-3

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

@joaodinissf joaodinissf commented Apr 30, 2026

No DDK source still depends on JUnit 4. This PR drops org.junit and junit-vintage-engine from the ddk.target IUs and from Require-Bundle across 7 bundle manifests, removes stale Export-Package entries for already-deleted packages, and switches swtbot.eclipse.test.junit.feature.group to swtbot.junit5.feature.group. mvn clean verify locally: 357 tests, 0 failures, 0 errors.

Two non-mechanical bits: xtext.test's manifest gains an explicit Require-Bundle on junit-platform-suite-engine — the runtime executor for @Suite/@SelectClasses, previously resolved transitively by luck, and the absence of which is what made #1292's silent-zero possible. And com.avaloq.tools.ddk.test.core.MultipleTestProblems (the JUnit 4 implementation using MultipleFailureException) is deleted; its sole user CompoundStep switches to the existing jupiter/MultipleTestProblems which uses org.opentest4j.MultipleFailuresError.

🤖 Generated with Claude Code

junit-jupiter-api
Import-Package: org.apache.logging.log4j
Export-Package: com.avaloq.tools.ddk.xtext.test,
com.avaloq.tools.ddk.xtext.test.contentassist,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not remove this exports.

Copy link
Copy Markdown
Collaborator Author

@joaodinissf joaodinissf May 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The packages those entries point to were deleted in d920b3b.
They had become dead code in this repo and all downstream repos following the JUnit 5 migration — platform setup in 38918bc, per-module migrations in be881df, bd5dd6d, c0dd0ad, 1828d2b and cadb87b, final assertion cleanup in 425c26f.
There was one leftover trivial fix that was overlooked, which I will prepare.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This? #1342

Copy link
Copy Markdown
Member

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment about the export removal

@joaodinissf joaodinissf enabled auto-merge (rebase) May 16, 2026 21:37
No DDK source still depends on JUnit 4. This commit drops org.junit
and junit-vintage-engine from the ddk.target IUs and from
Require-Bundle across 7 bundle manifests, removes stale
Export-Package entries for already-deleted packages, and switches
swtbot.eclipse.test.junit.feature.group to swtbot.junit5.feature.group.

Two non-mechanical bits: xtext.test's manifest gains an explicit
Require-Bundle on junit-platform-suite-engine — the runtime executor
for @Suite/@SelectClasses, previously resolved transitively by luck,
and the absence of which is what made the silent-zero possible. And
com.avaloq.tools.ddk.test.core.MultipleTestProblems (the JUnit 4
implementation using MultipleFailureException) is deleted; its sole
user CompoundStep switches to the existing jupiter/MultipleTestProblems
which uses org.opentest4j.MultipleFailuresError.

Verified locally: 357 tests, 0 failures, 0 errors, BUILD SUCCESS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joaodinissf joaodinissf force-pushed the chore/drop-junit4-target-step-3 branch from 950b810 to 848aad4 Compare May 19, 2026 12:21
@joaodinissf joaodinissf requested a review from rubenporras May 19, 2026 12:22
@joaodinissf joaodinissf merged commit 00b6239 into dsldevkit:master May 22, 2026
4 checks passed
@joaodinissf joaodinissf deleted the chore/drop-junit4-target-step-3 branch May 22, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants