AboutPagerAdapter extends PagerAdapter { @Override public int getCount() { return mEntries.size(); } AboutPagerAdapter(); @Override int getCount(); @Override boolean isViewFromObject(View view, Object object); @Override Object instantiateItem(ViewGroup container, int position); @Override void destroyItem(ViewGroup container, int position, Object object);  }
@Test public void should_fill_adapter_data_with_step_entries_on_instantiation() { assertThat(adapter.getCount()).isEqualTo(AboutPagerStepEntry.values().length); assertThat(adapter.getCount()).isEqualTo(4); }