Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

Migrate Junit 4 to Junit 5: gax-java #1611

Closed

Description

@blakeli0

Junit 5 provides a lot of new features(namely Precise exception handling, RepeatedTest etc.) that could be useful to us, it requires Java 8 to be the minimum runtime version, now that Java 8 is the minimum supported version for GAPIC, we can follow the migration guide to modernize our testing infra.
We can start with all the handwritten code in this repo, and expand to google-cloud-java and eventually handwritten libraries.

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 6, 2023
  2. lqiu96 commented on Feb 28, 2024

    @lqiu96
    Member

    One additional benefit of JUnit 5 from this implementation: #2485

    JUnit 4 doesn't have support for setting Environmental Variables inside tests. JUnit 5 has an extension pack which allows setting and clearing the env vars: https://junit-pioneer.org/docs/environment-variables/

  3. changed the title [-]Migrate Junit 4 to Junit 5[/-] [+]Migrate Junit 4 to Junit 5: gax-java[/+] on May 3, 2024
  4. self-assigned this
    on May 14, 2024
  5. added a commit that references this issue on May 17, 2024
    38ebcc3
  6. added a commit that references this issue on May 22, 2024
    cda8a9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions