FINERACT-1694-Event-Configuration-Database-Storage

This commit is contained in:
Ruchi Dhamankar
2022-10-17 15:15:52 +02:00
committed by Arnold Gálovics
parent 55b1baeacb
commit c9d5742836
25 changed files with 1146 additions and 8 deletions
@@ -24,6 +24,7 @@ import org.apache.fineract.cob.COBBusinessStepService;
import org.apache.fineract.cob.COBBusinessStepServiceImpl;
import org.apache.fineract.cob.domain.BatchBusinessStepRepository;
import org.apache.fineract.infrastructure.core.config.FineractProperties;
import org.apache.fineract.infrastructure.event.business.service.BusinessEventNotifierService;
import org.apache.fineract.portfolio.loanaccount.domain.LoanAccountDomainService;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@@ -38,10 +39,15 @@ public class TestDefaultConfiguration {
return mock(BatchBusinessStepRepository.class);
}
@Bean
public BusinessEventNotifierService businessEventNotifierService() {
return mock(BusinessEventNotifierService.class);
}
@Bean
public COBBusinessStepService cobBusinessStepService(BatchBusinessStepRepository batchBusinessStepRepository,
ApplicationContext context, ListableBeanFactory beanFactory) {
return new COBBusinessStepServiceImpl(batchBusinessStepRepository, context, beanFactory);
ApplicationContext context, ListableBeanFactory beanFactory, BusinessEventNotifierService businessEventNotifierService) {
return new COBBusinessStepServiceImpl(batchBusinessStepRepository, context, beanFactory, businessEventNotifierService);
}
@Bean