/** * Check that the views adapter contains the expected count of items. * * This counts the items existing in adapter and not the visible items. * Header and footer are count as list items. * * @param expected Zero for no items or a positive number. * * @since Espresso Macchiato 0.3 */ public void assertItemCountIs(int expected) { findView().check(new AdapterViewItemCountAssertion(expected)); }