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