use of android.app.IntentService in project robolectric by robolectric.
the class ShadowIntentServiceTest method shouldSetIntentRedelivery.
@Test
public void shouldSetIntentRedelivery() {
IntentService intentService = new TestIntentService();
ShadowIntentService shadowIntentService = shadowOf(intentService);
assertThat(shadowIntentService.getIntentRedelivery()).isFalse();
intentService.setIntentRedelivery(true);
assertThat(shadowIntentService.getIntentRedelivery()).isTrue();
intentService.setIntentRedelivery(false);
assertThat(shadowIntentService.getIntentRedelivery()).isFalse();
}
Aggregations