From 3b0b59bb224d6c6428c826d420b7ba437f5cfb2c Mon Sep 17 00:00:00 2001 From: utzcoz <43091780+utzcoz@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:47:21 +0800 Subject: [PATCH] Bump Robolectric to 4.11.1 (#51310) Bump Robolectric to the latest stable 4.11.1. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- shell/platform/android/build.gradle | 2 +- shell/platform/android/test/README.md | 2 +- shell/platform/android/test_runner/build.gradle | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/platform/android/build.gradle b/shell/platform/android/build.gradle index 004e3728f2dc2..3b44b0787bda8 100644 --- a/shell/platform/android/build.gradle +++ b/shell/platform/android/build.gradle @@ -52,7 +52,7 @@ android { implementation "androidx.test:core:1.4.0" implementation "com.google.android.play:core:1.8.0" implementation "com.ibm.icu:icu4j:69.1" - implementation "org.robolectric:robolectric:4.11" + implementation "org.robolectric:robolectric:4.11.1" implementation "junit:junit:4.13.2" implementation "androidx.test.ext:junit:1.1.4-alpha07" diff --git a/shell/platform/android/test/README.md b/shell/platform/android/test/README.md index ba72d91925020..2200d47a0a307 100644 --- a/shell/platform/android/test/README.md +++ b/shell/platform/android/test/README.md @@ -1,6 +1,6 @@ # Unit testing Java code -All Java code in the engine should now be able to be tested with Robolectric 4.10.3 +All Java code in the engine should now be able to be tested with Robolectric 4.11.1 and JUnit 4. The test suite has been added after the bulk of the Java code was first written, so most of these classes do not have existing tests. Ideally code after this point should be tested, either with unit tests here or with diff --git a/shell/platform/android/test_runner/build.gradle b/shell/platform/android/test_runner/build.gradle index da3b508bca435..7439db16168e5 100644 --- a/shell/platform/android/test_runner/build.gradle +++ b/shell/platform/android/test_runner/build.gradle @@ -70,7 +70,7 @@ android { testImplementation "androidx.test:core:1.4.0" testImplementation "com.google.android.play:core:1.8.0" testImplementation "com.ibm.icu:icu4j:69.1" - testImplementation "org.robolectric:robolectric:4.11" + testImplementation "org.robolectric:robolectric:4.11.1" testImplementation "junit:junit:4.13.2" testImplementation "androidx.test.ext:junit:1.1.4-alpha07"