Hello,
I need to cover Menu functionality by unit tests, however I'm struggling to obtain Menu object.
Following test case fails (mMenu is null):
public void testMenu() {
sendKeys(KeyEvent.KEYCODE_MENU);
mMenu = (Menu) mActivity.findViewById(com.###.###.R.id.main_menu);
assertNotNull(mMenu);
}
Please advice.
Thank you.