Skip to content

chore: migrate tests to JUnit 5, remove junit-vintage-engine#10

Merged
chrjohn merged 2 commits into
masterfrom
copilot/check-unneeded-dependencies
Jun 7, 2026
Merged

chore: migrate tests to JUnit 5, remove junit-vintage-engine#10
chrjohn merged 2 commits into
masterfrom
copilot/check-unneeded-dependencies

Conversation

Copilot AI commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

junit-vintage-engine was declared only to run JUnit 4 tests via the JUnit Platform — the direct JUnit 4 APIs were used but undeclared (transitive). Migrating to JUnit 5 removes this indirection and cleans up the dependency graph.

Changes

pom.xml

  • Replaced org.junit.vintage:junit-vintage-engine with org.junit.jupiter:junit-jupiter (aggregator: API + params + engine)

Test classes

  • @Rule TemporaryFolder@TempDir File (JUnit 5 built-in temp dir injection)
  • @Before@BeforeEach
  • org.junit.Assert.*org.junit.jupiter.api.Assertions.*
  • assertTrue("msg", condition)assertTrue(condition, "msg") — argument order is reversed in JUnit 5
  • tempFolder.newFolder("x") / tempFolder.getRoot()new File(tempFolder, "x") with asserted mkdir()

@chrjohn chrjohn added this to the 3.0.3 milestone Jun 7, 2026
@chrjohn chrjohn marked this pull request as ready for review June 7, 2026 11:31
@chrjohn chrjohn merged commit 166362c into master Jun 7, 2026
17 of 18 checks passed
@chrjohn chrjohn deleted the copilot/check-unneeded-dependencies branch June 7, 2026 11:31
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.

2 participants