Skip to content

Commit e7351f4

Browse files
dependabot[bot]david-allison
authored andcommitted
build(deps): bump org.mockito.kotlin:mockito-kotlin from 6.1.0 to 6.2.0
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]>
1 parent 18323bf commit e7351f4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

AnkiDroid/src/test/java/com/ichi2/anki/multiprofile/ProfileContextWrapperTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package com.ichi2.anki.multiprofile
1919

20+
import android.annotation.SuppressLint
2021
import android.content.Context
2122
import android.content.SharedPreferences
2223
import androidx.test.core.app.ApplicationProvider
@@ -137,6 +138,7 @@ class ProfileContextWrapperTest {
137138
// --- Shared pref tests ---
138139

139140
@Test
141+
@SuppressLint("WrongConstant") // mockito eq support
140142
fun `getSharedPreferences prefixes name for custom profile`() {
141143
val wrapper = ProfileContextWrapper.create(baseContext, profileId, profileBaseDir)
142144
val originalName = "deck_options"
@@ -152,6 +154,7 @@ class ProfileContextWrapperTest {
152154
}
153155

154156
@Test
157+
@SuppressLint("WrongConstant") // mockito eq support
155158
fun `getSharedPreferences does not prefix name for default profile`() {
156159
val wrapper = ProfileContextWrapper.create(baseContext, ProfileId.DEFAULT, profileBaseDir)
157160
val originalName = "deck_options"
@@ -166,6 +169,7 @@ class ProfileContextWrapperTest {
166169
}
167170

168171
@Test
172+
@SuppressLint("WrongConstant") // mockito eq support
169173
fun `getSharedPreferences does not double-prefix if name is already prefixed`() {
170174
val wrapper = ProfileContextWrapper.create(baseContext, profileId, profileBaseDir)
171175
val alreadyPrefixedName = "profile_${profileId.value}_deck_options"

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ lint = '31.13.2'
9797
material = "1.13.0"
9898

9999
mockitoInline = "5.2.0"
100-
mockitoKotlin = "6.1.0"
100+
mockitoKotlin = "6.2.0"
101101
mockk = "1.14.7"
102102
nanohttpd = "2.3.1"
103103
okhttp = "5.3.2"

0 commit comments

Comments
 (0)