@Test public void testRoundForCash() throws Exception{ for(Money m : moneys){ assertEquals(m.with(Monetary.getRounding( RoundingQueryBuilder.of().setCurrency(m.getCurrency()).set("cashRounding", true) .build())), rnd.roundForCash(m)); } }
public MonetaryAmount roundForCash(MonetaryAmount amount){ throw new UnsupportedOperationException(); }
Rounding { public MonetaryAmount roundForCash(MonetaryAmount amount){ throw new UnsupportedOperationException(); } }
Rounding { public MonetaryAmount roundForCash(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  }
Rounding { public MonetaryAmount roundForCash(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName(); }
Rounding { public MonetaryAmount roundForCash(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName();  }