@Test(expected = NullPointerException.class) public void addToJudgment_NULL_JUDGMENT() { maxMoneyAmountJudgmentUpdater.addToJudgment(null, new MoneyAmount()); }
@Override public void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(maxMoneyAmount); judgment.setMaxMoneyAmount(maxMoneyAmount); }
MaxMoneyAmountJudgmentUpdater implements JudgmentUpdater<MoneyAmount> { @Override public void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(maxMoneyAmount); judgment.setMaxMoneyAmount(maxMoneyAmount); } }
MaxMoneyAmountJudgmentUpdater implements JudgmentUpdater<MoneyAmount> { @Override public void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(maxMoneyAmount); judgment.setMaxMoneyAmount(maxMoneyAmount); }  }
MaxMoneyAmountJudgmentUpdater implements JudgmentUpdater<MoneyAmount> { @Override public void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(maxMoneyAmount); judgment.setMaxMoneyAmount(maxMoneyAmount); }  @Override void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount); }
MaxMoneyAmountJudgmentUpdater implements JudgmentUpdater<MoneyAmount> { @Override public void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount) { Preconditions.checkNotNull(judgment); Preconditions.checkNotNull(maxMoneyAmount); judgment.setMaxMoneyAmount(maxMoneyAmount); }  @Override void addToJudgment(Judgment judgment, MoneyAmount maxMoneyAmount);  }