Hello Friends,
Today , I am sharing my another android tutorial. In this tutorial I am going to show
how to write the test case for android Toast message using Roboelectric and Junit.
Today , I am sharing my another android tutorial. In this tutorial I am going to show
how to write the test case for android Toast message using Roboelectric and Junit.
@Test
public void testToastMesaage() throws Exception{
Helper.showBadServerNotification(activity);
assertThat( ShadowToast.getTextOfLatestToast(),equalTo(
shadowActivity.getString(R.string.bad_server_response)));
}
Could you please help me with this problem I have?
ReplyDeletehttp://stackoverflow.com/questions/31792463/android-error-testing-a-toast
I haven't find any solution. I'm using mockito.