I have a menu with some button, each of which triggers an action. I am writing a Junit test for this menu, and I cannot figure out how to verify that the button has loaded the correct activity. Still i
public void testButtons() { TouchUtils.clickView(this, buttonView); assertEquals(com.fgap.ontrack.newsFeed.class, getActivity()); }
So far, I see that the program is loading the correct activity from the emulator, but the Junit test still does not work.
Alex berndt
source share