RepoListFragment extends BaseFragment implements RepoListView { @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_repo_list, container, false); ButterKnife.bind(this, view); LinearLayoutManager llm = new LinearLayoutManager(getContext()); recyclerView.setLayoutManager(llm); adapter = new RepoListAdapter(new ArrayList<>(), presenter); recyclerView.setAdapter(adapter); presenter.onCreateView(savedInstanceState); return view; }  @OnClick(R.id.button_search) void onClickSearch(View v); @Override void onAttach(Activity activity); @Override void onCreate(@Nullable Bundle savedInstanceState); void setViewComponent(ViewComponent viewComponent); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void showError(String error); @Override void showRepoList(List<Repository> repoList); @Override void showEmptyList(); @Override String getUserName(); @Override void startRepoInfoFragment(Repository repository); @Override void onSaveInstanceState(Bundle outState);  }
@Test public void testOnCreateView() { repoListFragment.onCreateView(LayoutInflater.from(activity), (ViewGroup) activity.findViewById(R.id.container), null); verify(repoListPresenter).onCreateView(null); }
@Test public void testOnCreateViewWithBundle() { repoListFragment.onCreateView(LayoutInflater.from(activity), (ViewGroup) activity.findViewById(R.id.container), bundle); verify(repoListPresenter).onCreateView(bundle); }