Skip to content

chore: bump org.mockito:mockito-android from 5.8.0 to 5.23.0 in /android - #317

Merged
nickolas-dimitrakas merged 4 commits into
mainfrom
dependabot/gradle/android/org.mockito-mockito-android-5.23.0
Sep 9, 2026
Merged

chore: bump org.mockito:mockito-android from 5.8.0 to 5.23.0 in /android#317
nickolas-dimitrakas merged 4 commits into
mainfrom
dependabot/gradle/android/org.mockito-mockito-android-5.23.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 8, 2026

Copy link
Copy Markdown
Contributor

Bumps org.mockito:mockito-android from 5.8.0 to 5.23.0.

Release notes

Sourced from org.mockito:mockito-android's releases.

v5.23.0

NOTE: Breaking change for Android

The mockito-android artifact has a breaking change: tests now require a device or emulator based on API 28+ (Android P). This is to enable new support for mocking Kotlin classes. See #3788 for more details.


Changelog generated by Shipkit Changelog Gradle Plugin

5.23.0

v5.22.0

Changelog generated by Shipkit Changelog Gradle Plugin

5.22.0

v5.21.0

Changelog generated by Shipkit Changelog Gradle Plugin

5.21.0

... (truncated)

Commits
  • a231205 Fix StackOverflowError with AbstractList after using mockSingleton (#3790)
  • f6a91a6 Replace mockito-android mock maker implementation with dexmaker-mockito-inlin...
  • aa2298a fix: make spotless happy
  • a6729d6 chore: update BDDMockito with jspecify annotation
  • bb83c92 chore: move jspecify as a compile only dependency
  • 47a4695 chore: add jspecify with minimal change. Fixes #3503
  • 25f1395 Add core API to enable Kotlin singleton mocking (#3762)
  • ef9ee55 Avoids mocking private static methods, as well as package-private static meth...
  • d16fcfc Bump graalvm/setup-graalvm from 1.4.4 to 1.4.5 (#3780)
  • 27eb8a3 Clarify RETURNS_MOCKS behavior with sealed abstract enums (Java 15+) (#3773)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [org.mockito:mockito-android](https://github.com/mockito/mockito) from 5.8.0 to 5.23.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v5.8.0...v5.23.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-android
  dependency-version: 5.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@cursor

cursor Bot commented May 8, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Test-only Gradle dependency changes with a documented Byte Buddy pin; no production runtime impact, though future androidTest runs need API 28+.

Overview
Bumps Mockito test dependencies in android/build.gradle from 5.8.0 to 5.23.0 for both mockito-core (unit tests) and mockito-android (instrumented tests).

Adds a global Gradle resolution strategy that forces byte-buddy and byte-buddy-agent to 1.15.11, avoiding Mockito 5.23’s newer Byte Buddy (1.17.7) that breaks this project’s AGP/Jetifier with “Unsupported class file major version 68”.

Note: Mockito 5.23 requires API 28+ emulators/devices for android instrumented tests if those are run later; JVM unit tests under src/test are unaffected.

Reviewed by Cursor Bugbot for commit 7240fa4. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b9a3e70. Configure here.

Comment thread android/build.gradle
…roid/org.mockito-mockito-android-5.23.0

# Conflicts:
#	android/build.gradle
…ito 5.23.0

byte-buddy 1.16.0+ (which mockito 5.23.0 pulls transitively) ships a
META-INF/versions/24 multi-release overlay that this AGP's Jetifier can't
parse ("Unsupported class file major version 68"). 1.15.11 is the last
release without that overlay and is still API-compatible with mockito's
usage. Verified locally: testDebugUnitTest and lintDebug both pass.
@nickolas-dimitrakas
nickolas-dimitrakas merged commit d3364b7 into main Sep 9, 2026
11 checks passed
@nickolas-dimitrakas
nickolas-dimitrakas deleted the dependabot/gradle/android/org.mockito-mockito-android-5.23.0 branch September 9, 2026 21:18
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.

2 participants