ListingActivity extends ViperButterKnifeActivity<ListingContract.View, ListingContract.Presenter> implements ListingContract.View, UserAdapter.UserClickListener { @Override public void showContent() { mErrorViewTextView.setVisibility(View.INVISIBLE); mLoadingViewProgressBar.setVisibility(View.INVISIBLE); mRecyclerView.setVisibility(View.VISIBLE); }  static void start(Activity activity, String avatarUrl, ImageView avatarImageView); @Override void setUserList(List<User> userList); @Override void onUserClick(User user); @Override void showError(Throwable throwable); @Override void showLoading(); @Override void showContent(); @NonNull @Override ListingContract.Presenter createPresenter(); static final String PHOTO_URL_EXTRA_STRING; }
@Test public void testShowContent() throws Exception { mListingActivity.showContent(); assertFalse("Loading indicator is visible", mProgressBar.isShown()); assertTrue("content is not visible", mRecyclerView.isShown()); assertFalse("Error textview is visible", mErrorTextView.isShown()); }