Skip to content

Conversation

@MBoegers
Copy link
Collaborator

What's changed?

A recipe that adds @ExtendWith(MockitoExtension.class) if @Mock or @Captor is used.

What's your motivation?

Spring Boot 4.0 requires adding these https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide#mockito-captor-and-mock-annotations

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@MBoegers MBoegers self-assigned this Nov 21, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Nov 21, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready to Review

Development

Successfully merging this pull request may close these issues.

3 participants