@Test(expectedExceptions = NullPointerException.class) public void shouldReturnErroWhenIsNull() { operator.apply(null); fail(); }
@Override public MonetaryAmount apply(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(DOWN_ROUNDING); }
ExtractorMajorPartOperator implements MonetaryOperator { @Override public MonetaryAmount apply(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(DOWN_ROUNDING); } }
ExtractorMajorPartOperator implements MonetaryOperator { @Override public MonetaryAmount apply(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(DOWN_ROUNDING); } ExtractorMajorPartOperator(); }
ExtractorMajorPartOperator implements MonetaryOperator { @Override public MonetaryAmount apply(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(DOWN_ROUNDING); } ExtractorMajorPartOperator(); @Override MonetaryAmount apply(MonetaryAmount amount); }
ExtractorMajorPartOperator implements MonetaryOperator { @Override public MonetaryAmount apply(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(DOWN_ROUNDING); } ExtractorMajorPartOperator(); @Override MonetaryAmount apply(MonetaryAmount amount);  }