Rename method
This commit is contained in:
parent
e3f7cf6b2c
commit
0fc42daf5c
|
@ -50,7 +50,7 @@ public class FormatNumber {
|
|||
return new Double(df.format(value));
|
||||
}
|
||||
|
||||
public static String withLongNumbers(double value) {
|
||||
public static String withLargeIntegers(double value) {
|
||||
DecimalFormat df = new DecimalFormat("###,###,###");
|
||||
return df.format(value);
|
||||
}
|
||||
|
|
|
@ -59,9 +59,9 @@ public class FormatNumberUnitTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void givenIntegerNumber_whenFormatNumber_withLongNumbers_thenGetExpectedResult() {
|
||||
public void givenIntegerNumber_whenFormatNumber_withLargeIntegers_thenGetExpectedResult() {
|
||||
int value = 123456789;
|
||||
assertThat(withLongNumbers(value)).isEqualTo("123,456,789");
|
||||
assertThat(withLargeIntegers(value)).isEqualTo("123,456,789");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue