Skip to content

Commit

Permalink
Remove kitkat-specific test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609862242
  • Loading branch information
java-team-github-bot authored and Dagger Team committed Feb 24, 2024
1 parent c40811e commit c5075df
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions javatests/dagger/hilt/android/InjectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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;
Expand Down Expand Up @@ -438,21 +437,6 @@ public void testViewNoFragmentBindingsWithFragment_fourthConstructor_presentOnTw
assertThat(view.activityBinding).isEqualTo(ACTIVITY_BINDING);
}

@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);
Expand Down

0 comments on commit c5075df

Please sign in to comment.