FINERACT-2389: Update Transaction Summary Report with Asset Owner report
This commit is contained in:
committed by
Arnold Gálovics
parent
ba05687292
commit
774e164601
+5
-6
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user