FINERACT-2389: Update Transaction Summary Report with Asset Owner report

This commit is contained in:
Adam Saghy
2025-10-31 12:31:17 +01:00
committed by Arnold Gálovics
parent ba05687292
commit 774e164601
3 changed files with 3126 additions and 6 deletions
@@ -984,12 +984,10 @@ public class InitiateExternalAssetOwnerTransferTest extends BaseLoanIntegrationT
new BigDecimal("0.000000")));
final var allExternalEvents = ExternalEventHelper.getAllExternalEvents(REQUEST_SPEC, RESPONSE_SPEC);
Assertions.assertEquals(1, allExternalEvents.size());
Assertions.assertEquals("LoanOwnershipTransferBusinessEvent", allExternalEvents.get(0).getType());
Assertions.assertEquals(Long.valueOf(loanID), allExternalEvents.get(0).getAggregateRootId());
ExternalEventHelper.deleteAllExternalEvents(REQUEST_SPEC, new ResponseSpecBuilder().expectStatusCode(Matchers.is(204)).build());
ExternalEventHelper.changeEventState(REQUEST_SPEC, RESPONSE_SPEC, "LoanOwnershipTransferBusinessEvent", true);
List<ExternalEventResponse> loanOwnershipTransferBusinessEvents = allExternalEvents.stream()
.filter(e -> e.getType().equals("LoanOwnershipTransferBusinessEvent")).toList();
Assertions.assertEquals(1, loanOwnershipTransferBusinessEvents.size());
Assertions.assertEquals(Long.valueOf(loanID), loanOwnershipTransferBusinessEvents.get(0).getAggregateRootId());
getAndValidateThereIsActiveMapping(loanID);
@@ -1184,6 +1182,7 @@ public class InitiateExternalAssetOwnerTransferTest extends BaseLoanIntegrationT
assertEquals(0.00, jsonPath.getDouble("data[8].row[8]"), 0.01);
assertEquals(ownerId, jsonPath.getString("data[8].row[9]"));
} finally {
ExternalEventHelper.deleteAllExternalEvents(REQUEST_SPEC, new ResponseSpecBuilder().expectStatusCode(Matchers.is(204)).build());
cleanUpAndRestoreBusinessDate();
}
}