fd product releated update code

This commit is contained in:
Nitesh Yadav
2026-05-05 15:18:35 +05:30
parent be220d8778
commit 4735111a4f
33 changed files with 63380 additions and 44790 deletions
@@ -45,6 +45,7 @@ import org.apache.fineract.portfolio.shareaccounts.domain.ShareAccount;
import org.apache.fineract.portfolio.shareproducts.domain.ShareProduct;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.jdbc.core.JdbcTemplate;
public class AccountNumberGeneratorTest {
@@ -54,6 +55,7 @@ public class AccountNumberGeneratorTest {
private SavingsAccountRepository savingsRepo;
private GLAccountRepository glAccountRepo;
private SavingsProductRepository savingsProductRepo;
private JdbcTemplate jdbcTemplate;
private AccountNumberGenerator generator;
@@ -65,8 +67,9 @@ public class AccountNumberGeneratorTest {
savingsRepo = mock(SavingsAccountRepository.class);
glAccountRepo = mock(GLAccountRepository.class);
savingsProductRepo = mock(SavingsProductRepository.class);
jdbcTemplate = mock(JdbcTemplate.class);
generator = new AccountNumberGenerator(configService, clientRepo, loanRepo, savingsRepo, glAccountRepo, savingsProductRepo);
generator = new AccountNumberGenerator(configService, clientRepo, loanRepo, savingsRepo, glAccountRepo, savingsProductRepo, jdbcTemplate);
GlobalConfigurationPropertyData accountLengthConfig = mock(GlobalConfigurationPropertyData.class);
when(accountLengthConfig.getValue()).thenReturn(Long.valueOf("9"));