Skip to content

Commit e17303f

Browse files
Monica-CodingWorldadamsaghy
authored andcommitted
FINERACT-2206: Fix date inconsistency in SavingsInterestPostingTest
Fixed startDate from dynamic current year to hardcoded 2025 in testPostInterestNotZero() to maintain consistent 2025 timeline. Resolves HTTP 400 error caused by date mismatches.
1 parent ab9f4fd commit e17303f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration-tests/src/test/java/org/apache/fineract/integrationtests/SavingsInterestPostingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public void testPostInterestNotZero() {
340340
interestReceivableAccount.getAccountID().toString(), assetAccount, incomeAccount, expenseAccount, liabilityAccount);
341341

342342
final Integer clientId = ClientHelper.createClient(requestSpec, responseSpec, "01 January 2025");
343-
final LocalDate startDate = LocalDate.of(LocalDate.now(Utils.getZoneIdOfTenant()).getYear(), 1, 1);
343+
final LocalDate startDate = LocalDate.of(2025, 1, 1);
344344
final String startStr = DateTimeFormatter.ofPattern("dd MMMM yyyy", Locale.US).format(startDate);
345345

346346
final Integer accountId = savingsAccountHelper.applyForSavingsApplicationOnDate(clientId, productId,

0 commit comments

Comments
 (0)