Code example for ListActivity

Methods: setListAdapter

0
        assertThat(listView.getAdapter()).isSameAs(adapter);
    } 
 
    @Test(expected = RuntimeException.class) 
    public void whenNoViewWithListIdExists_shouldRaiseException(){ 
        ListActivity listActivity = new ListActivity();
        listActivity.setListAdapter(new CountingAdapter(5));
    } 
}