adamsaghy commented on code in PR #3206:
URL: https://github.com/apache/fineract/pull/3206#discussion_r1219103200


##########
fineract-provider/src/test/java/org/apache/fineract/infrastructure/event/external/service/ExternalEventServiceTest.java:
##########
@@ -72,17 +81,29 @@ class ExternalEventServiceTest {
     @Mock
     private EntityManager entityManager;
 
+    @Mock
+    private LoanAccountDataV1Enricher loanAccountDataV1Enricher;
+
     private ExternalEventService underTest;
 
     @BeforeEach
     public void setUp() {
+        
lenient().when(loanAccountDataV1Enricher.isDataTypeSupported(any())).thenReturn(true);
+        DataEnricherProcessor dataEnricherProcessor = new 
DataEnricherProcessor(Optional.of(Arrays.asList(loanAccountDataV1Enricher)));
         underTest = new ExternalEventService(repository, 
idempotencyKeyGenerator, serializerFactory, byteBufferConverter,
-                bulkMessageItemFactory);
+                bulkMessageItemFactory, dataEnricherProcessor);
         underTest.setEntityManager(entityManager);
         FineractPlatformTenant tenant = new FineractPlatformTenant(1L, 
"default", "Default Tenant", "Europe/Budapest", null);
         ThreadLocalContextUtil.setTenant(tenant);
         ThreadLocalContextUtil
                 .setBusinessDates(new 
HashMap<>(Map.of(BusinessDateType.BUSINESS_DATE, 
LocalDate.now(ZoneId.systemDefault()))));
+        // doAnswer(invocation -> {

Review Comment:
   Dont you need this?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to