@Test public void testGetFractionNumerator() throws Exception{ BigDecimal bd = new BigDecimal("0.1234553"); MonetaryAmount amount = Money.of(bd, "USD"); assertEquals("Invalid fraction numerator for " + bd, amount.getNumber().getAmountFractionDenominator(), np.getFractionNumerator(amount)); }
public long getFractionNumerator(MonetaryAmount amount){ throw new UnsupportedOperationException(); }
NumericRepresentation { public long getFractionNumerator(MonetaryAmount amount){ throw new UnsupportedOperationException(); } }
NumericRepresentation { public long getFractionNumerator(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  }
NumericRepresentation { public long getFractionNumerator(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  BigDecimal getBigDecimal(MonetaryAmount amount); long getLongTruncated(MonetaryAmount amount); int getPrecision(MonetaryAmount amount); int getScale(MonetaryAmount amount); long getFractionDenominator(MonetaryAmount amount); long getFractionNumerator(MonetaryAmount amount); Class<?> getNumberType(MonetaryAmount amount); Number getNumber(MonetaryAmount amount); }
NumericRepresentation { public long getFractionNumerator(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  BigDecimal getBigDecimal(MonetaryAmount amount); long getLongTruncated(MonetaryAmount amount); int getPrecision(MonetaryAmount amount); int getScale(MonetaryAmount amount); long getFractionDenominator(MonetaryAmount amount); long getFractionNumerator(MonetaryAmount amount); Class<?> getNumberType(MonetaryAmount amount); Number getNumber(MonetaryAmount amount);  }