|
|
@@ -19,7 +19,7 @@ class DisposableIncomeGrowthSupportTest
|
|
19
|
19
|
BizDisposableIncome previous = row(2019, "11886");
|
|
20
|
20
|
DisposableIncomeGrowthSupport.fillMissingGrowth(current, previous);
|
|
21
|
21
|
assertEquals(0, new BigDecimal("1460").compareTo(current.getIncomeIncrease()));
|
|
22
|
|
- assertEquals(0, new BigDecimal("0.122834").compareTo(current.getIncomeGrowthRate()));
|
|
|
22
|
+ assertEquals(0, new BigDecimal("12.28").compareTo(current.getIncomeGrowthRate()));
|
|
23
|
23
|
}
|
|
24
|
24
|
|
|
25
|
25
|
@Test
|
|
|
@@ -28,11 +28,11 @@ class DisposableIncomeGrowthSupportTest
|
|
28
|
28
|
{
|
|
29
|
29
|
BizDisposableIncome current = row(2020, "13346");
|
|
30
|
30
|
current.setIncomeIncrease(new BigDecimal("1000"));
|
|
31
|
|
- current.setIncomeGrowthRate(new BigDecimal("0.0800"));
|
|
|
31
|
+ current.setIncomeGrowthRate(new BigDecimal("8.00"));
|
|
32
|
32
|
BizDisposableIncome previous = row(2019, "11886");
|
|
33
|
33
|
DisposableIncomeGrowthSupport.fillMissingGrowth(current, previous);
|
|
34
|
34
|
assertEquals(new BigDecimal("1000"), current.getIncomeIncrease());
|
|
35
|
|
- assertEquals(new BigDecimal("0.0800"), current.getIncomeGrowthRate());
|
|
|
35
|
+ assertEquals(new BigDecimal("8.00"), current.getIncomeGrowthRate());
|
|
36
|
36
|
}
|
|
37
|
37
|
|
|
38
|
38
|
@Test
|
|
|
@@ -44,7 +44,7 @@ class DisposableIncomeGrowthSupportTest
|
|
44
|
44
|
BizDisposableIncome previous = row(2019, "11886");
|
|
45
|
45
|
DisposableIncomeGrowthSupport.fillMissingGrowth(current, previous);
|
|
46
|
46
|
assertEquals(new BigDecimal("1460"), current.getIncomeIncrease());
|
|
47
|
|
- assertEquals(0, new BigDecimal("0.122834").compareTo(current.getIncomeGrowthRate()));
|
|
|
47
|
+ assertEquals(0, new BigDecimal("12.28").compareTo(current.getIncomeGrowthRate()));
|
|
48
|
48
|
}
|
|
49
|
49
|
|
|
50
|
50
|
@Test
|
|
|
@@ -74,11 +74,11 @@ class DisposableIncomeGrowthSupportTest
|
|
74
|
74
|
{
|
|
75
|
75
|
BizDisposableIncome current = row(2022, "13346");
|
|
76
|
76
|
current.setIncomeIncrease(new BigDecimal("1"));
|
|
77
|
|
- current.setIncomeGrowthRate(new BigDecimal("0.01"));
|
|
|
77
|
+ current.setIncomeGrowthRate(new BigDecimal("1.00"));
|
|
78
|
78
|
BizDisposableIncome previous = row(2021, "11886");
|
|
79
|
79
|
DisposableIncomeGrowthSupport.recalculateGrowth(current, previous);
|
|
80
|
80
|
assertEquals(0, new BigDecimal("1460").compareTo(current.getIncomeIncrease()));
|
|
81
|
|
- assertEquals(0, new BigDecimal("0.122834").compareTo(current.getIncomeGrowthRate()));
|
|
|
81
|
+ assertEquals(0, new BigDecimal("12.28").compareTo(current.getIncomeGrowthRate()));
|
|
82
|
82
|
}
|
|
83
|
83
|
|
|
84
|
84
|
private static BizDisposableIncome row(int year, String income)
|