Fix legacy integration test cases for specific holiday
diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java
index a54b5cb..f16e3cf 100644
--- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java
+++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java
@@ -550,6 +550,8 @@
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
diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/HolidayHelper.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
index 1630575..dd66b21 100644
--- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
+++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
@@ -112,4 +112,10 @@
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");
+ }
+
}