@Test public void testDivide() { assertEquals(BIG_DECIMAL_0_84, UNDER_TEST_ONE.divide(BIG_DECIMAL_1_19).getMoney().round().getAmount()); }
public Price divide(BigDecimal divisor) { return new Price(amount.divide(divisor), quantity); }
Price { public Price divide(BigDecimal divisor) { return new Price(amount.divide(divisor), quantity); } }
Price { public Price divide(BigDecimal divisor) { return new Price(amount.divide(divisor), quantity); } Price(BigDecimal amount, Currency currency);  Price(Money amount, Quantity quantity); }
Price { public Price divide(BigDecimal divisor) { return new Price(amount.divide(divisor), quantity); } Price(BigDecimal amount, Currency currency);  Price(Money amount, Quantity quantity); static Price getInstance(PricePO price); Price divide(BigDecimal divisor); @Override boolean equals(Object obj); Money getMoney(); Price getPriceFor(Quantity newQuantity); Quantity getQuantity(); @Override int hashCode(); Price multiply(BigDecimal multiplicand); PricePO toPricePO(); @Override String toString(); }
Price { public Price divide(BigDecimal divisor) { return new Price(amount.divide(divisor), quantity); } Price(BigDecimal amount, Currency currency);  Price(Money amount, Quantity quantity); static Price getInstance(PricePO price); Price divide(BigDecimal divisor); @Override boolean equals(Object obj); Money getMoney(); Price getPriceFor(Quantity newQuantity); Quantity getQuantity(); @Override int hashCode(); Price multiply(BigDecimal multiplicand); PricePO toPricePO(); @Override String toString();  }