8000 Refactor test to be fixed with spring 6 by strehle · Pull Request #3461 · cloudfoundry/uaa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor test to be fixed with spring 6 #3461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged

Conversation

strehle
Copy link
Member
@strehle strehle commented May 13, 2025

Mocks with Spring 6x obviously are now more precise than before... we have a signature like

doAnyThing(String x, String ...)

So before when(doAnyThing(any(), any()).... was good enough, but now we need to mock the numbers of parameters, e.g.
when(doAnyThing(any(), any()).
when(doAnyThing(any(), any(), any()).
when(doAnyThing(any(), any(), any(), any()).
etc.

@strehle strehle merged commit 08e7fd5 into develop May 13, 2025
22 checks passed
@strehle strehle deleted the refactorTestSpring6 branch May 13, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant
0