Removed Trailing spaces in empty lines
This commit is contained in:
-4
@@ -28,22 +28,18 @@ import org.apache.fineract.portfolio.savings.SavingsPostingInterestPeriodType;
|
|||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
class SavingsHelperNPExceptionTest {
|
class SavingsHelperNPExceptionTest {
|
||||||
|
|
||||||
private final SavingsHelper savingsHelper = new SavingsHelper(null);
|
private final SavingsHelper savingsHelper = new SavingsHelper(null);
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void shouldNotThrowNullPointerExceptionWhenPostingPeriodTypeIsNull() {
|
void shouldNotThrowNullPointerExceptionWhenPostingPeriodTypeIsNull() {
|
||||||
LocalDate start = LocalDate.of(2025, 1, 1);
|
LocalDate start = LocalDate.of(2025, 1, 1);
|
||||||
LocalDate end = LocalDate.of(2025, 4, 1);
|
LocalDate end = LocalDate.of(2025, 4, 1);
|
||||||
|
|
||||||
SavingsPostingInterestPeriodType nullPostingPeriodType = null;
|
SavingsPostingInterestPeriodType nullPostingPeriodType = null;
|
||||||
|
|
||||||
Integer financialYearBeginningMonth = 1;
|
Integer financialYearBeginningMonth = 1;
|
||||||
List<LocalDate> postInterestAsOn = new ArrayList<>();
|
List<LocalDate> postInterestAsOn = new ArrayList<>();
|
||||||
|
|
||||||
List<LocalDateInterval> result = savingsHelper.determineInterestPostingPeriods(start, end, nullPostingPeriodType,
|
List<LocalDateInterval> result = savingsHelper.determineInterestPostingPeriods(start, end, nullPostingPeriodType,
|
||||||
financialYearBeginningMonth, postInterestAsOn);
|
financialYearBeginningMonth, postInterestAsOn);
|
||||||
|
|
||||||
assertTrue(result.isEmpty(), "Result should be empty when postingPeriodType is null");
|
assertTrue(result.isEmpty(), "Result should be empty when postingPeriodType is null");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user