@Test public void shouldScrollToFirstPositionWhenFABClicked(){ presenter.setView(view); presenter.onFABScrollUpClicked(); verify(view , times(1)).scrollToFirstPosition(); }
public void onFABScrollUpClicked() { getView().scrollToFirstPosition(); }
MainPresenter extends BasePresenter<MainPresenter.View> implements SyncConnectionListener { public void onFABScrollUpClicked() { getView().scrollToFirstPosition(); } }
MainPresenter extends BasePresenter<MainPresenter.View> implements SyncConnectionListener { public void onFABScrollUpClicked() { getView().scrollToFirstPosition(); } @Inject  MainPresenter(); }
MainPresenter extends BasePresenter<MainPresenter.View> implements SyncConnectionListener { public void onFABScrollUpClicked() { getView().scrollToFirstPosition(); } @Inject  MainPresenter(); @Override void initialize(); @Override void onDestroy(); @Override void onNetworkConnectionChanged(boolean internetConnected); void onFABScrollUpClicked(); void onTabSelected(int position); }
MainPresenter extends BasePresenter<MainPresenter.View> implements SyncConnectionListener { public void onFABScrollUpClicked() { getView().scrollToFirstPosition(); } @Inject  MainPresenter(); @Override void initialize(); @Override void onDestroy(); @Override void onNetworkConnectionChanged(boolean internetConnected); void onFABScrollUpClicked(); void onTabSelected(int position);  }