@Test(expectedExceptions = NullPointerException.class) public void shouldReturnNPEWhenTheMonetaryAmountIsNull() { query.queryFrom(null); fail(); }
@Override public Long queryFrom(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(downRounding).getNumber().longValueExact(); }
ExtractorMajorPartQuery implements MonetaryQuery<Long> { @Override public Long queryFrom(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(downRounding).getNumber().longValueExact(); } }
ExtractorMajorPartQuery implements MonetaryQuery<Long> { @Override public Long queryFrom(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(downRounding).getNumber().longValueExact(); } ExtractorMajorPartQuery(); }
ExtractorMajorPartQuery implements MonetaryQuery<Long> { @Override public Long queryFrom(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(downRounding).getNumber().longValueExact(); } ExtractorMajorPartQuery(); @Override Long queryFrom(MonetaryAmount amount); }
ExtractorMajorPartQuery implements MonetaryQuery<Long> { @Override public Long queryFrom(MonetaryAmount amount) { Objects.requireNonNull(amount, "Amount required."); return amount.with(downRounding).getNumber().longValueExact(); } ExtractorMajorPartQuery(); @Override Long queryFrom(MonetaryAmount amount);  }