How can I use Robotium to verify that my activity handles onPause() , onDestroy() , onResume() and similar calls correctly?
In my Robotium test, I can name stuff like
solo.getCurrentActivity().onKeyDown(0, null);
but how can I imitate destructible and recreated activity? I don't see any
solo.getCurrentActivity().onPause()
or
solo.getCurrentActivity().onDestroy()
methods that i can use? Isn't that what Robotium is for?
source share