@Test public void testFinishUpdate() { final FragmentManager mockFragmentManager = mock(FragmentManager.class); final FragmentTransaction mockTransaction = mock(FragmentTransaction.class); PagerAdapterHelper.finishUpdate(mockFragmentManager, mockTransaction); verify(mockTransaction).commitNowAllowingStateLoss(); verifyZeroInteractions(mockFragmentManager); }
static void finishUpdate(@SuppressWarnings("unused") @NonNull final FragmentManager fragmentManager, @NonNull final FragmentTransaction transaction) { transaction.commitNowAllowingStateLoss(); }
PagerAdapterHelper { static void finishUpdate(@SuppressWarnings("unused") @NonNull final FragmentManager fragmentManager, @NonNull final FragmentTransaction transaction) { transaction.commitNowAllowingStateLoss(); } }
PagerAdapterHelper { static void finishUpdate(@SuppressWarnings("unused") @NonNull final FragmentManager fragmentManager, @NonNull final FragmentTransaction transaction) { transaction.commitNowAllowingStateLoss(); } private  PagerAdapterHelper(); }
PagerAdapterHelper { static void finishUpdate(@SuppressWarnings("unused") @NonNull final FragmentManager fragmentManager, @NonNull final FragmentTransaction transaction) { transaction.commitNowAllowingStateLoss(); } private  PagerAdapterHelper();  }
PagerAdapterHelper { static void finishUpdate(@SuppressWarnings("unused") @NonNull final FragmentManager fragmentManager, @NonNull final FragmentTransaction transaction) { transaction.commitNowAllowingStateLoss(); } private  PagerAdapterHelper();   }