ActivityUnitTestCase is an isolated, unit test of a single Activity. The Activity Under Test does not participate of the system interactions.
You can start your Activity using startActivity()
, and it will invoke onCreate()
, however if you wish to further exercise Activity life cycle methods, you must call them yourself from your test case.