RepoInfoFragment extends BaseFragment implements RepoInfoView { @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_repo_info, container, false); ButterKnife.bind(this, view); String infoText = getRepositoryVO().getRepoName() + " (" + getRepositoryVO().getOwnerName() + ")"; info.setText(infoText); branchesRecyclerView.setLayoutManager(new LinearLayoutManager(getContext())); contributorsRecyclerView.setLayoutManager(new LinearLayoutManager(getContext())); presenter.onCreateView(savedInstanceState); return view; }  static RepoInfoFragment newInstance(Repository repository); @Override void onCreate(@Nullable Bundle savedInstanceState); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onSaveInstanceState(Bundle outState); @Override void showError(String error); @Override void showContributors(List<Contributor> contributors); @Override void showBranches(List<Branch> branches);  }
@Test public void testOnCreateView() { repoInfoFragment.onCreateView(LayoutInflater.from(activity), (ViewGroup) activity.findViewById(R.id.container), null); verify(repoInfoPresenter).onCreateView(null); }
@Test public void testOnCreateViewWithBundle() { repoInfoFragment.onCreateView(LayoutInflater.from(activity), (ViewGroup) activity.findViewById(R.id.container), bundle); verify(repoInfoPresenter).onCreateView(bundle); }