Skip to content

Commit cec8ebf

Browse files
[file_selector] Convert unit tests to Kotlin (flutter#13102)
Converts `file_selector_android` native unit tests from Java to Kotlin. Similar to my other conversions, the process was: - Use the Android Studio deterministic auto-conversion. - Do manual cleanup and improvement as several separate commits. - This included adopting `mockito-kotlin` to make the mocking less verbose and complex - Do a local Gemini review for where the code could be improved as Kotlin code, and address most of that feedback. Does not include any changes to production code. Part of flutter#188630 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 718b7cf commit cec8ebf

6 files changed

Lines changed: 774 additions & 932 deletions

File tree

‎packages/file_selector/file_selector_android/android/build.gradle.kts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ android {
4848
implementation("androidx.annotation:annotation:1.10.0")
4949
testImplementation("junit:junit:4.13.2")
5050
testImplementation("org.mockito:mockito-core:5.23.0")
51+
testImplementation("org.mockito.kotlin:mockito-kotlin:6.3.0")
5152
testImplementation("androidx.test:core:1.7.0")
5253
testImplementation("org.robolectric:robolectric:4.17")
5354
}

0 commit comments

Comments
 (0)