format code
This commit is contained in:
parent
729c392019
commit
7c2b4e6f88
|
@ -43,8 +43,8 @@ public class CustomConverterTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenConvertingToBigDecimalUsingGenericConverter_thenSuccess() {
|
public void whenConvertingToBigDecimalUsingGenericConverter_thenSuccess() {
|
||||||
assertThat(conversionService.convert(Integer.valueOf(11), BigDecimal.class)).
|
assertThat(conversionService.convert(Integer.valueOf(11), BigDecimal.class))
|
||||||
isEqualTo(BigDecimal.valueOf(11.00).setScale(2, BigDecimal.ROUND_HALF_EVEN));
|
.isEqualTo(BigDecimal.valueOf(11.00).setScale(2, BigDecimal.ROUND_HALF_EVEN));
|
||||||
assertThat(conversionService.convert(Double.valueOf(25.23), BigDecimal.class))
|
assertThat(conversionService.convert(Double.valueOf(25.23), BigDecimal.class))
|
||||||
.isEqualByComparingTo(BigDecimal.valueOf(Double.valueOf(25.23)));
|
.isEqualByComparingTo(BigDecimal.valueOf(Double.valueOf(25.23)));
|
||||||
assertThat(conversionService.convert("2.32", BigDecimal.class))
|
assertThat(conversionService.convert("2.32", BigDecimal.class))
|
||||||
|
|
Loading…
Reference in New Issue