@Test public void testGetBigDecimal() throws Exception{ BigDecimal bd = new BigDecimal("123435443565465409683468327434324.3748634"); MonetaryAmount amount = Money.of(bd, "INR"); BigDecimal bd2 = np.getBigDecimal(amount); assertEquals("Invalid BigDecimal value", bd.stripTrailingZeros(), bd2.stripTrailingZeros()); }
public BigDecimal getBigDecimal(MonetaryAmount amount){ throw new UnsupportedOperationException(); }
NumericRepresentation { public BigDecimal getBigDecimal(MonetaryAmount amount){ throw new UnsupportedOperationException(); } }
NumericRepresentation { public BigDecimal getBigDecimal(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  }
NumericRepresentation { public BigDecimal getBigDecimal(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 BigDecimal getBigDecimal(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);  }