@Test public void shouldRecordPreferencesResourceId() { assertThat(shadow.getPreferencesResId()).isEqualTo(-1); activity.addPreferencesFromResource(R.xml.preferences); assertThat(shadow.getPreferencesResId()).isEqualTo(R.xml.preferences); }
@Test public void shouldInitializeListViewInOnCreate() { shadow.callOnCreate(null); assertThat(activity.getListView()).isNotNull(); }