
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. @Test public void testToastMesaage() throws Exception{ Helper.showBadServerNotification(activity); assertThat( ShadowToast.getTextOfLatestToast(),equalTo( shadowActivity.getString(R.string.bad_server_response))); } ...