diff options
author | Dagger Team <java-team-github-bot@google.com> | 2024-02-23 16:05:26 -0800 |
---|---|---|
committer | Dagger Team <dagger-dev+copybara@google.com> | 2024-02-23 16:08:31 -0800 |
commit | c5075dfc252e3ca4b868b5c412c81a1574e56a54 (patch) | |
tree | ce4c2cb55af56bcbeeb5dbdc5727b17e9a849d84 | |
parent | c40811e71012c0838b83c3dd6b921f42332f2831 (diff) | |
download | dagger2-c5075dfc252e3ca4b868b5c412c81a1574e56a54.tar.gz |
Remove kitkat-specific test.
PiperOrigin-RevId: 609862242
-rw-r--r-- | javatests/dagger/hilt/android/InjectionTest.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/javatests/dagger/hilt/android/InjectionTest.java b/javatests/dagger/hilt/android/InjectionTest.java index 426fc6d32..37607822b 100644 --- a/javatests/dagger/hilt/android/InjectionTest.java +++ b/javatests/dagger/hilt/android/InjectionTest.java @@ -19,7 +19,6 @@ package dagger.hilt.android; import static androidx.test.core.app.ApplicationProvider.getApplicationContext; import static com.google.common.truth.Truth.assertThat; import static java.lang.annotation.RetentionPolicy.RUNTIME; -import static org.junit.Assert.assertThrows; import static org.junit.Assert.fail; import android.annotation.TargetApi; @@ -439,21 +438,6 @@ public final class InjectionTest { } @Test - @Config(sdk = 19) - public void testViewNoFragmentBindingsWithFragment_fourthConstructor_notPresentOnTwenty() { - TestFragment fragment = setupFragment(TestActivity.class, new TestFragment()); - - assertThrows( - NoSuchMethodError.class, - () -> - new TestView( - fragment.getContext(), - /* attrs= */ null, - /* defStyleAttr= */ 0, - /* defStyleRes= */ 0)); - } - - @Test public void testServiceInjection() throws Exception { TestService testService = Robolectric.setupService(TestService.class); assertThat(testService.appBinding).isEqualTo(APP_BINDING); |