@Test public void setDataTest() { postsFragment.setData(posts); verify(postRecyclerViewAdapterMock, times(1)).reloadAdapter(posts); verifyNoMoreInteractions(postRecyclerViewAdapterMock); }
@Override public void setData(final List<Post> posts) { postRecyclerViewAdapter.reloadAdapter(posts); }
PostsFragment extends MvpLceFragment<SwipeRefreshLayout, List<Post>, PostsView, PostsPresenter> implements PostsView, SwipeRefreshLayout.OnRefreshListener { @Override public void setData(final List<Post> posts) { postRecyclerViewAdapter.reloadAdapter(posts); } }
PostsFragment extends MvpLceFragment<SwipeRefreshLayout, List<Post>, PostsView, PostsPresenter> implements PostsView, SwipeRefreshLayout.OnRefreshListener { @Override public void setData(final List<Post> posts) { postRecyclerViewAdapter.reloadAdapter(posts); }  }
PostsFragment extends MvpLceFragment<SwipeRefreshLayout, List<Post>, PostsView, PostsPresenter> implements PostsView, SwipeRefreshLayout.OnRefreshListener { @Override public void setData(final List<Post> posts) { postRecyclerViewAdapter.reloadAdapter(posts); }  @Override View onCreateView(final LayoutInflater inflater, @Nullable final ViewGroup container,
                             @Nullable final Bundle savedInstanceState); @Override void onViewCreated(final View view, @Nullable final Bundle savedInstance); @Override void loadData(final boolean pullToRefresh); @Override PostsPresenter createPresenter(); @Override void onDestroyView(); @Override void notifyUserAboutUsersUnavailability(); @Override void notifyUserAboutInternetUnavailability(); @Override void showLoading(final boolean pullToRefresh); @Override void setData(final List<Post> posts); @Override void showContent(); @Override void showError(final Throwable throwable, final boolean pullToRefresh); @Override void onRefresh(); }
PostsFragment extends MvpLceFragment<SwipeRefreshLayout, List<Post>, PostsView, PostsPresenter> implements PostsView, SwipeRefreshLayout.OnRefreshListener { @Override public void setData(final List<Post> posts) { postRecyclerViewAdapter.reloadAdapter(posts); }  @Override View onCreateView(final LayoutInflater inflater, @Nullable final ViewGroup container,
                             @Nullable final Bundle savedInstanceState); @Override void onViewCreated(final View view, @Nullable final Bundle savedInstance); @Override void loadData(final boolean pullToRefresh); @Override PostsPresenter createPresenter(); @Override void onDestroyView(); @Override void notifyUserAboutUsersUnavailability(); @Override void notifyUserAboutInternetUnavailability(); @Override void showLoading(final boolean pullToRefresh); @Override void setData(final List<Post> posts); @Override void showContent(); @Override void showError(final Throwable throwable, final boolean pullToRefresh); @Override void onRefresh();  }