Skip to content

[SPARK-56098][BUILD] Upgrade mockito-core to 5.23.0 and use mockito-5-18#54915

Closed
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:SPARK-56098
Closed

[SPARK-56098][BUILD] Upgrade mockito-core to 5.23.0 and use mockito-5-18#54915
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:SPARK-56098

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun commented Mar 20, 2026

What changes were proposed in this pull request?

This PR upgrades mockito-core to 5.23.0 and the corresponding scalatestplus-mockito to mockito-5-18 to avoid any future Java 21 and 25 testing issue.

Why are the changes needed?

Currently, we are using 5.12.0 which was released on 2024-05-11.

We had better keep the test dependency up to date with the latest bug fixes and improvements.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-6)

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-56098] Upgrade mockito-core to 5.23.0 and use mockito-5-18 [SPARK-56098][BUILD] Upgrade mockito-core to 5.23.0 and use mockito-5-18 Mar 20, 2026
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review March 20, 2026 07:11
@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you, @yaooqinn , @HyukjinKwon , @LuciferYang .
Merged to master for Apache Spark 4.2.0.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-56098 branch March 20, 2026 12:20
terana pushed a commit to terana/spark that referenced this pull request Mar 23, 2026
…o-5-18`

### What changes were proposed in this pull request?

This PR upgrades `mockito-core` to 5.23.0 and the corresponding `scalatestplus-mockito` to `mockito-5-18` to avoid any future Java 21 and 25 testing issue.

### Why are the changes needed?

Currently, we are using 5.12.0 which was released on 2024-05-11.

We had better keep the test dependency up to date with the latest bug fixes and improvements.
- https://github.com/mockito/mockito/releases/tag/v5.23.0
- https://github.com/mockito/mockito/releases/tag/v5.22.0
  - mockito/mockito#3778
  - mockito/mockito#3785
- https://github.com/mockito/mockito/releases/tag/v5.21.0
  - mockito/mockito#3758
- https://github.com/mockito/mockito/releases/tag/v5.20.0
  - mockito/mockito#3708
- https://github.com/mockito/mockito/releases/tag/v5.19.0
  - mockito/mockito#3659
- https://github.com/mockito/mockito/releases/tag/v5.18.0
- https://github.com/mockito/mockito/releases/tag/v5.17.0
- https://github.com/mockito/mockito/releases/tag/v5.16.0
- https://github.com/mockito/mockito/releases/tag/v5.15.0
  - mockito/mockito#3476
- https://github.com/mockito/mockito/releases/tag/v5.14.0
- https://github.com/mockito/mockito/releases/tag/v5.13.0

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-6)

Closes apache#54915 from dongjoon-hyun/SPARK-56098.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
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.

4 participants