@Test public void testKnownRoundings() throws Exception{ Collection<String> roundings = rnd.getKnownRoundings(); assertNotNull(roundings); Set<String> curSet = Monetary.getRoundingNames(); for(String roundingId : curSet){ assertTrue(roundings.contains(roundingId)); } for(String roundingId : roundings){ assertTrue(curSet.contains(roundingId)); } }
public Collection<String> getKnownRoundings(){ throw new UnsupportedOperationException(); }
Rounding { public Collection<String> getKnownRoundings(){ throw new UnsupportedOperationException(); } }
Rounding { public Collection<String> getKnownRoundings(){ throw new UnsupportedOperationException(); }  }
Rounding { public Collection<String> getKnownRoundings(){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName(); }
Rounding { public Collection<String> getKnownRoundings(){ throw new UnsupportedOperationException(); }  MonetaryAmount roundWithDefaultRounding(MonetaryAmount amount); MonetaryAmount roundForCash(MonetaryAmount amount); MonetaryAmount roundMathematical(MonetaryAmount amount); Collection<String> getKnownRoundings(); String getCustomRoundingName();  }