Skip to content

Migrate test suite from JUnit 4 to JUnit 5 #76

Description

@marioserrano09

Goal

Migrate all tests in the monorepo (platform/, extensions/, examples/) from JUnit 4 to JUnit 5 (Jupiter).

Scope

  • Root pom.xml: replace the junit:junit dependency with junit-jupiter (version managed by the already-imported spring-boot-dependencies BOM).
  • Review extension poms that declare JUnit explicitly (finances/http-functions/saas have their own poms).
  • Migrate ~90 test classes: annotations (@test, @Before->@beforeeach, @After->@AfterEach, @BeforeClass->@BeforeAll, @AfterClass->@afterall), org.junit.* imports -> org.junit.jupiter.api., Assert. -> Assertions.*, @ignore->@disabled, JUnit4 rules (@Rule/ExpectedException) -> assertThrows, runners (@RunWith) -> @ExtendWith.
  • Verify compatibility with Mockito/Spring Boot Test where applicable.
  • Produce a list of recommended additional tests (coverage gap analysis) per module.

Branch

chore/junit5-migration (from origin/main)

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions