Skip to content

chore(deps-dev): Bump org.mockito:mockito-core from 4.11.0 to 5.21.0#1183

Open
lahirumaramba wants to merge 2 commits intomainfrom
chore/bump-mockito-5-21-0-4226669932721722342
Open

chore(deps-dev): Bump org.mockito:mockito-core from 4.11.0 to 5.21.0#1183
lahirumaramba wants to merge 2 commits intomainfrom
chore/bump-mockito-5-21-0-4226669932721722342

Conversation

@lahirumaramba
Copy link
Member

Bumps mockito-core from 4.11.0 to 5.21.0.
Updates maven-compiler-plugin configuration to use Java 11 for test compilation, as Mockito 5 requires Java 11+.
Replaces deprecated MockitoAnnotations.initMocks with MockitoAnnotations.openMocks in MockitoTestRule.java and ensures the returned AutoCloseable is closed.


PR created automatically by Jules for task 4226669932721722342 started by @lahirumaramba

Bumps `mockito-core` from 4.11.0 to 5.21.0.
Updates `maven-compiler-plugin` configuration to use Java 11 for test compilation, as Mockito 5 requires Java 11+.
Replaces deprecated `MockitoAnnotations.initMocks` with `MockitoAnnotations.openMocks` in `MockitoTestRule.java` and ensures the returned `AutoCloseable` is closed.

Co-authored-by: lahirumaramba <55609+lahirumaramba@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Bumps `mockito-core` from 4.11.0 to 5.21.0 on JDK 11+.
Keeps `mockito-core` at 4.11.0 for JDK 8 builds to maintain compatibility.
Uses a Maven profile `mockito-5-jdk-11` to conditionally apply the upgrade and set test compilation target to 11 when running on JDK 11 or higher.
Replaces deprecated `MockitoAnnotations.initMocks` with `MockitoAnnotations.openMocks` in `MockitoTestRule.java` and ensures the returned `AutoCloseable` is closed, which is compatible with both Mockito 4 and 5.

Co-authored-by: lahirumaramba <55609+lahirumaramba@users.noreply.github.com>
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.

1 participant

Comments