Package com.wesabe.api.util.money

Examples of com.wesabe.api.util.money.Money.subtract()


    @Test
    public void shouldBeOneDollar() throws Exception {
      Money oneDollar = new Money(decimal("1.00"), USD);
      Money twoDollars = new Money(decimal("2.00"), USD);
      assertEquals(oneDollar, twoDollars.subtract(oneDollar));
    }

  }

  public static class One_Dollar_Plus_One_Euro {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.