@Test public void testRoundMathematical() throws Exception{ RoundingQuery ctx = RoundingQueryBuilder.of().set(RoundingMode.HALF_UP).set("maxScale", 3).build(); for(Money m : moneys){ assertEquals(rnd.roundMathematical(m), m.with(Monetary.getRounding(ctx))); } }
public MonetaryAmount roundMathematical(MonetaryAmount amount){ throw new UnsupportedOperationException(); }
Rounding { public MonetaryAmount roundMathematical(MonetaryAmount amount){ throw new UnsupportedOperationException(); } }
Rounding { public MonetaryAmount roundMathematical(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  }
Rounding { public MonetaryAmount roundMathematical(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 roundMathematical(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName();  }