FINERACT-2401: e2e test scenarios interest pause biz events

This commit is contained in:
MarianaDmytrivBinariks
2025-10-31 09:58:06 +01:00
committed by Adam Saghy
parent 1b4abd18a9
commit ba05687292
2 changed files with 102 additions and 3 deletions
@@ -156,6 +156,12 @@ public class LoanInterestPauseStepDef extends AbstractStepDef {
});
}
@Then("LoanScheduleVariationsAddedBusinessEvent is not raised on {string}")
public void checkLoanScheduleVariationsAddedBusinessEvent(final String date) {
eventAssertion.assertEventNotRaised(LoanScheduleVariationsAddedEvent.class,
em -> FORMATTER.format(em.getBusinessDate()).equals(date));
}
@Then("LoanScheduleVariationsDeletedBusinessEvent is created for interest pause from {string} to {string}")
public void checkLoanScheduleVariationsDeletedBusinessEvent(final String start, final String end) {
final Response<PostLoansResponse> loanResponse = testContext().get(TestContextKey.LOAN_CREATE_RESPONSE);