コード例 #1
0
 @Test
 public void shoudReturnAmountFractionNumerator() {
   NumberValue numberValue = DefaultNumberValue.of(BigDecimal.valueOf(62.5));
   assertEquals(5L, numberValue.getAmountFractionNumerator());
   assertEquals(10L, numberValue.getAmountFractionDenominator());
 }
コード例 #2
0
 @Test
 public void shouldReturnAmountFractionNumerator() {
   NumberValue numberValue = DefaultNumberValue.of(BigDecimal.valueOf(132.21));
   assertEquals(21L, numberValue.getAmountFractionNumerator());
 }