@Test public void shouldChangeCurrentPositionWhenPosterSlide(){ presenter.setView(view); presenter.countPosters(2 , 10); verify(view , times(1)).showCurrentPosition("3/10"); }
void countPosters(int currentItem, int count) { currentItem += 1; getView().showCurrentPosition(String.format(Locale.getDefault() , "%d/%d" , currentItem , count)); }
PosterSliderPresenter extends BasePresenter<PosterSliderPresenter.View> { void countPosters(int currentItem, int count) { currentItem += 1; getView().showCurrentPosition(String.format(Locale.getDefault() , "%d/%d" , currentItem , count)); } }
PosterSliderPresenter extends BasePresenter<PosterSliderPresenter.View> { void countPosters(int currentItem, int count) { currentItem += 1; getView().showCurrentPosition(String.format(Locale.getDefault() , "%d/%d" , currentItem , count)); } @Inject  PosterSliderPresenter(); }
PosterSliderPresenter extends BasePresenter<PosterSliderPresenter.View> { void countPosters(int currentItem, int count) { currentItem += 1; getView().showCurrentPosition(String.format(Locale.getDefault() , "%d/%d" , currentItem , count)); } @Inject  PosterSliderPresenter(); @Override void initialize(); @Override void onDestroy(); }
PosterSliderPresenter extends BasePresenter<PosterSliderPresenter.View> { void countPosters(int currentItem, int count) { currentItem += 1; getView().showCurrentPosition(String.format(Locale.getDefault() , "%d/%d" , currentItem , count)); } @Inject  PosterSliderPresenter(); @Override void initialize(); @Override void onDestroy();  }