GalleryAdapter extends PagerAdapter { @Override public int getCount() { return items.size(); } GalleryAdapter(Context context, SwipeToDismissTouchListener.Callback callback); @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 testGetCount_withZeroItems() { assertEquals(0, subject.getCount()); }