Home
last modified time | relevance | path

Searched refs:ShadowToast (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowToastTest.java48 assertThat(ShadowToast.getLatestToast()).isSameAs(toast); in shouldMakeTextCorrectly()
49 assertThat(ShadowToast.getTextOfLatestToast()).isEqualTo("short toast"); in shouldMakeTextCorrectly()
50 assertThat(ShadowToast.showedToast("short toast")).isTrue(); in shouldMakeTextCorrectly()
58 assertThat(ShadowToast.getLatestToast()).isSameAs(toast); in shouldSetTextCorrectly()
59 assertThat(ShadowToast.getTextOfLatestToast()).isEqualTo("other toast"); in shouldSetTextCorrectly()
60 assertThat(ShadowToast.showedToast("other toast")).isTrue(); in shouldSetTextCorrectly()
68 assertThat(ShadowToast.getLatestToast()).isSameAs(toast); in shouldSetTextWithIdCorrectly()
69 assertThat(ShadowToast.getTextOfLatestToast()).isEqualTo("Hello"); in shouldSetTextWithIdCorrectly()
70 assertThat(ShadowToast.showedToast("Hello")).isTrue(); in shouldSetTextWithIdCorrectly()
100 assertThat(ShadowToast.shownToastCount()).isEqualTo(0); in shouldCountToastsCorrectly()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowToast.java16 public class ShadowToast { class
39 ShadowToast shadowToast = Shadow.extract(toast); in makeText()
176 ShadowToast shadowToast = Shadow.extract(toast); in showedToast()
197 ShadowToast shadowToast = Shadow.extract(latestToast); in getTextOfLatestToast()