called by * Android the first time the Activity is created. * * @return Activity controller instance. */ public ActivityController<T> setup() { return create().start().postCreate(null).resume().visible(); } Calls lifecycle methods for you
private variable Example: AlertDialog How can I test title and message are correct? getTitle() and getMessage() are private ShadowAlertDialog dialogShadow = shadowOf(alert); assertThat(dialogShadow.getTitle().toString().equals(“Dialog title”);