@Test public void testCustomRoundingName(){ String rndId = rnd.getCustomRoundingName(); MonetaryOperator rounding = Monetary.getRounding(rndId); assertNotNull(rounding); for(Money m : moneys){ assertNotNull(m.with(rounding)); assertEquals(m.getClass().getName(), m.with(rounding).getClass().getName()); } }
public String getCustomRoundingName(){ throw new UnsupportedOperationException(); }
Rounding { public String getCustomRoundingName(){ throw new UnsupportedOperationException(); } }
Rounding { public String getCustomRoundingName(){ throw new UnsupportedOperationException(); }  }
Rounding { public String getCustomRoundingName(){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName(); }
Rounding { public String getCustomRoundingName(){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName();  }