Skip to content

[SPARK-47089][BUILD][TESTS] Migrate mockito 4 to mockito 5#45158

Closed
panbingkun wants to merge 3 commits intoapache:masterfrom
panbingkun:SPARK-47089
Closed

[SPARK-47089][BUILD][TESTS] Migrate mockito 4 to mockito 5#45158
panbingkun wants to merge 3 commits intoapache:masterfrom
panbingkun:SPARK-47089

Conversation

@panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Feb 19, 2024

What changes were proposed in this pull request?

The pr aims to migrate mockito 4 to mockito 5.

Why are the changes needed?

This is the prerequisite behavior for upgrading scalatest mockito to version 3.2.18.
Scalatest mockito 3.2.18 no longer supports mockito 4.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GA.

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

No.

@panbingkun panbingkun changed the title [WIP][SPARK-47089][BUILD][TESTS] Migrate mockito 4 to mockito 5 [SPARK-47089][BUILD][TESTS] Migrate mockito 4 to mockito 5 Feb 19, 2024
@panbingkun
Copy link
Contributor Author

cc @dongjoon-hyun @LuciferYang

@panbingkun panbingkun marked this pull request as ready for review February 19, 2024 09:05
when(podsWithNamespace.withName(driverPodName)).thenReturn(driverPodOperations)
when(podsWithNamespace.resource(any())).thenReturn(podResource)
when(podsWithNamespace.withLabel(anyString(), anyString())).thenReturn(labeledPods)
when(podsWithNamespace.withLabelIn(anyString(), any())).thenReturn(labeledPods)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image image

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Oh, thank you so much, @panbingkun . It looks good to me.

@dongjoon-hyun
Copy link
Member

Merged to master for Apache Spark 4.0.0.

@LuciferYang
Copy link
Contributor

late LGTM ~ thanks @panbingkun and @dongjoon-hyun

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants