@Test public void incrementNumber_incrementsInteractorByOne() { buttonPresenter.incrementNumber(); verify(mockInteractor).incrementNumberBy(eq(1)); }
@Override public void incrementNumber() { Timber.d("Incrementing number"); int value = 1; getInteractor().incrementNumberBy(value); numberUpdateYoke.changeNumber(value); }
ButtonPresenter extends PrivvyPresenter<ButtonContract.View, ButtonContract.Interactor> implements ButtonContract.Presenter { @Override public void incrementNumber() { Timber.d("Incrementing number"); int value = 1; getInteractor().incrementNumberBy(value); numberUpdateYoke.changeNumber(value); } }
ButtonPresenter extends PrivvyPresenter<ButtonContract.View, ButtonContract.Interactor> implements ButtonContract.Presenter { @Override public void incrementNumber() { Timber.d("Incrementing number"); int value = 1; getInteractor().incrementNumberBy(value); numberUpdateYoke.changeNumber(value); } ButtonPresenter(ButtonContract.Interactor interactor, NumberUpdateYoke numberUpdateYoke); }
ButtonPresenter extends PrivvyPresenter<ButtonContract.View, ButtonContract.Interactor> implements ButtonContract.Presenter { @Override public void incrementNumber() { Timber.d("Incrementing number"); int value = 1; getInteractor().incrementNumberBy(value); numberUpdateYoke.changeNumber(value); } ButtonPresenter(ButtonContract.Interactor interactor, NumberUpdateYoke numberUpdateYoke); @Override void incrementNumber(); @Override void decrementNumber(); }
ButtonPresenter extends PrivvyPresenter<ButtonContract.View, ButtonContract.Interactor> implements ButtonContract.Presenter { @Override public void incrementNumber() { Timber.d("Incrementing number"); int value = 1; getInteractor().incrementNumberBy(value); numberUpdateYoke.changeNumber(value); } ButtonPresenter(ButtonContract.Interactor interactor, NumberUpdateYoke numberUpdateYoke); @Override void incrementNumber(); @Override void decrementNumber();  }