use of com.dexels.navajo.document.types.Money in project navajo by Dexels.
the class UtilsMoneyTest method testAddMoneyAndDouble.
@Test
public void testAddMoneyAndDouble() {
Money a = new Money(15);
Double b = 10.0;
Money result = (Money) Utils.add(a, b, "ToMoney(15) + 10.0");
assertEquals(new Money(25), result);
}
use of com.dexels.navajo.document.types.Money in project navajo by Dexels.
the class UtilsMoneyTest method testSubtractDoubleAndMoney.
@Test
public void testSubtractDoubleAndMoney() {
Double a = 15.0;
Money b = new Money(10);
Money result = (Money) Utils.subtract(a, b, "15.0 - ToMoney(10)");
assertEquals(new Money(5), result);
}
use of com.dexels.navajo.document.types.Money in project navajo by Dexels.
the class UtilsMoneyTest method testAddDoubleAndMoney.
@Test
public void testAddDoubleAndMoney() {
Double a = 15.0;
Money b = new Money(10);
Money result = (Money) Utils.add(a, b, "15.0 + ToMoney(10)");
assertEquals(new Money(25), result);
}
use of com.dexels.navajo.document.types.Money in project navajo by Dexels.
the class UtilsMoneyTest method testAddIntegerAndMoney.
@Test
public void testAddIntegerAndMoney() {
Integer a = 15;
Money b = new Money(10);
Money result = (Money) Utils.add(a, b, "15 + ToMoney(10)");
assertEquals(new Money(25), result);
}
use of com.dexels.navajo.document.types.Money in project navajo by Dexels.
the class UtilsMoneyTest method testAddMoneyAndLong.
@Test
public void testAddMoneyAndLong() {
Money a = new Money(15);
Long b = 10L;
Money result = (Money) Utils.add(a, b, "ToMoney(15) + ToLong(10)");
assertEquals(new Money(25), result);
}
Aggregations