Fix legacy integration test cases for specific holiday

This commit is contained in:
Jose Alberto Hernandez
2024-04-05 19:19:35 +02:00
committed by Adam Saghy
parent 749d6511ef
commit 127add41d6
2 changed files with 8 additions and 0 deletions
@@ -550,6 +550,8 @@ public class SchedulerJobsTestResults {
Assertions.assertEquals(LocalDate.of(2024, 6, 4), dueDate,
"Verifying Repayment Rescheduled Date after Running Apply Holidays to Loans Scheduler Job");
// Remove the Holiday created
HolidayHelper.deleteHoliday(requestSpec, responseSpec, holidayId);
}
@Test
@@ -112,4 +112,10 @@ public class HolidayHelper {
return response;
}
public static Integer deleteHoliday(final RequestSpecification requestSpec, final ResponseSpecification responseSpec,
final Integer holidayID) {
final String DELETE_HOLIDAY_URL = HOLIDAYS_URL + "/" + holidayID + "?" + Utils.TENANT_IDENTIFIER;
return Utils.performServerDelete(requestSpec, responseSpec, DELETE_HOLIDAY_URL, "{}", "resourceId");
}
}