Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 14, 2026

Bumps org.mockito.kotlin:mockito-kotlin from 6.1.0 to 6.2.0.

Release notes

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

v6.2.0

Changelog generated by Shipkit Changelog Gradle Plugin

6.2.0

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added the dependencies used for automated dependency PRs label Jan 14, 2026
@mikehardy
Copy link
Member

Looks like their change to the eq matcher impacts our codebase, should be visible with ./gradlew :AnkiDroid:lintPlayDebug to reproduce:


> Task :AnkiDroid:lintPlayDebug FAILED
/home/runner/work/Anki-Android/Anki-Android/AnkiDroid/src/test/java/com/ichi2/anki/multiprofile/ProfileContextWrapperTest.kt:151: Error: Must be one or more of: Context.MODE_PRIVATE, Context.MODE_WORLD_READABLE, Context.MODE_WORLD_WRITEABLE, Context.MODE_MULTI_PROCESS [WrongConstant]
        verify(baseContext).getSharedPreferences(eq(expectedName), eq(Context.MODE_PRIVATE))
                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/Anki-Android/Anki-Android/AnkiDroid/src/test/java/com/ichi2/anki/multiprofile/ProfileContextWrapperTest.kt:165: Error: Must be one or more of: Context.MODE_PRIVATE, Context.MODE_WORLD_READABLE, Context.MODE_WORLD_WRITEABLE, Context.MODE_MULTI_PROCESS [WrongConstant]
        verify(baseContext).getSharedPreferences(eq(originalName), eq(Context.MODE_PRIVATE))
                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/Anki-Android/Anki-Android/AnkiDroid/src/test/java/com/ichi2/anki/multiprofile/ProfileContextWrapperTest.kt:179: Error: Must be one or more of: Context.MODE_PRIVATE, Context.MODE_WORLD_READABLE, Context.MODE_WORLD_WRITEABLE, Context.MODE_MULTI_PROCESS [WrongConstant]
        verify(baseContext).getSharedPreferences(eq(alreadyPrefixedName), eq(Context.MODE_PRIVATE))
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~

@david-allison david-allison self-assigned this Jan 15, 2026
@david-allison
Copy link
Member

I'll get this one looked into tonight. It appears to be an issue with Android's old "enum values as ints" lint checks and Mockito

Bumps [org.mockito.kotlin:mockito-kotlin](https://github.com/mockito/mockito-kotlin) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/mockito/mockito-kotlin/releases)
- [Commits](mockito/mockito-kotlin@v6.1.0...v6.2.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@david-allison david-allison force-pushed the dependabot/gradle/dependency-updates/org.mockito.kotlin-mockito-kotlin-6.2.0 branch from 896b528 to e7351f4 Compare January 16, 2026 15:59
@david-allison
Copy link
Member

@mikehardy I've lazily ignored this, as we'll likely move to mockk in the future.

Feel free to have me dig in and grab the upstream change which caused the issue, or explain more in detail.

@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Jan 16, 2026
@david-allison david-allison removed their assignment Jan 16, 2026
@mikehardy
Copy link
Member

I'm not fussed. We're almost completely up to date every where and this is test only. Hard to imagine this being urgent in any way

@david-allison david-allison merged commit a05c0e2 into dependency-updates Jan 16, 2026
19 checks passed
@dependabot dependabot bot deleted the dependabot/gradle/dependency-updates/org.mockito.kotlin-mockito-kotlin-6.2.0 branch January 16, 2026 22:21
@github-actions github-actions bot added this to the 2.24 release milestone Jan 16, 2026
@github-actions github-actions bot removed the Needs Second Approval Has one approval, one more approval to merge label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies used for automated dependency PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants