diff options
-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); |