@Test public void initializeTest() { CourseTabsDashboardFragment fragment = CourseTabsDashboardFragment.newInstance(getCourseData(), "testsCourseId", Screen.COURSE_DASHBOARD); SupportFragmentTestUtil.startVisibleFragment(fragment, RoboFragmentActivity.class, android.R.id.content); View view = fragment.getView(); assertNotNull(view); View viewPager2 = view.findViewById(R.id.viewPager2); assertNotNull(viewPager2); assertThat(viewPager2).isInstanceOf(ViewPager2.class); }
@NonNull public static CourseTabsDashboardFragment newInstance( @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId, @Nullable @ScreenDef String screenName) { final Bundle bundle = new Bundle(); bundle.putSerializable(Router.EXTRA_COURSE_DATA, courseData); bundle.putSerializable(Router.EXTRA_COURSE_ID, courseId); bundle.putSerializable(Router.EXTRA_SCREEN_NAME, screenName); return newInstance(bundle); }
CourseTabsDashboardFragment extends TabsBaseFragment { @NonNull public static CourseTabsDashboardFragment newInstance( @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId, @Nullable @ScreenDef String screenName) { final Bundle bundle = new Bundle(); bundle.putSerializable(Router.EXTRA_COURSE_DATA, courseData); bundle.putSerializable(Router.EXTRA_COURSE_ID, courseId); bundle.putSerializable(Router.EXTRA_SCREEN_NAME, screenName); return newInstance(bundle); } }
CourseTabsDashboardFragment extends TabsBaseFragment { @NonNull public static CourseTabsDashboardFragment newInstance( @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId, @Nullable @ScreenDef String screenName) { final Bundle bundle = new Bundle(); bundle.putSerializable(Router.EXTRA_COURSE_DATA, courseData); bundle.putSerializable(Router.EXTRA_COURSE_ID, courseId); bundle.putSerializable(Router.EXTRA_SCREEN_NAME, screenName); return newInstance(bundle); }  }
CourseTabsDashboardFragment extends TabsBaseFragment { @NonNull public static CourseTabsDashboardFragment newInstance( @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId, @Nullable @ScreenDef String screenName) { final Bundle bundle = new Bundle(); bundle.putSerializable(Router.EXTRA_COURSE_DATA, courseData); bundle.putSerializable(Router.EXTRA_COURSE_ID, courseId); bundle.putSerializable(Router.EXTRA_SCREEN_NAME, screenName); return newInstance(bundle); }  @NonNull static CourseTabsDashboardFragment newInstance(
            @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId,
            @Nullable @ScreenDef String screenName); static CourseTabsDashboardFragment newInstance(@NonNull Bundle bundle); @Override void onCreateOptionsMenu(Menu menu, MenuInflater inflater); @Override View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState); @Override boolean onOptionsItemSelected(MenuItem item); @Override void onStart(); @Override void onStop(); @Override void onDestroyView(); void handleDownloadProgressMenuItem(Menu menu); @Override List<FragmentItemModel> getFragmentItems(); }
CourseTabsDashboardFragment extends TabsBaseFragment { @NonNull public static CourseTabsDashboardFragment newInstance( @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId, @Nullable @ScreenDef String screenName) { final Bundle bundle = new Bundle(); bundle.putSerializable(Router.EXTRA_COURSE_DATA, courseData); bundle.putSerializable(Router.EXTRA_COURSE_ID, courseId); bundle.putSerializable(Router.EXTRA_SCREEN_NAME, screenName); return newInstance(bundle); }  @NonNull static CourseTabsDashboardFragment newInstance(
            @Nullable EnrolledCoursesResponse courseData, @Nullable String courseId,
            @Nullable @ScreenDef String screenName); static CourseTabsDashboardFragment newInstance(@NonNull Bundle bundle); @Override void onCreateOptionsMenu(Menu menu, MenuInflater inflater); @Override View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState); @Override boolean onOptionsItemSelected(MenuItem item); @Override void onStart(); @Override void onStop(); @Override void onDestroyView(); void handleDownloadProgressMenuItem(Menu menu); @Override List<FragmentItemModel> getFragmentItems();  }