@Test public void shouldBeCancelled() throws Exception { Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); toast.cancel(); ShadowToast shadowToast = shadowOf(toast); assertThat(shadowToast.isCancelled()).isTrue(); } }
@Test public void shouldBeCancelled() throws Exception { Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); toast.cancel(); ShadowToast shadowToast = shadowOf(toast); assertThat(shadowToast.isCancelled()).isTrue(); } }