Improve assertion in SchedulerJobsTestResults (FINERACT-924)

This commit is contained in:
Michael Vorburger
2021-01-17 10:33:45 +01:00
committed by Michael Vorburger ⛑️
parent cfd0e95c47
commit 12b15cdf2b
@@ -20,6 +20,7 @@ package org.apache.fineract.integrationtests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import com.google.common.truth.Truth;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.builder.ResponseSpecBuilder;
import io.restassured.http.ContentType;
@@ -158,8 +159,8 @@ public class SchedulerJobsTestResults {
annualFeeDueDateAsArrayList.get(2));
LocalDate todaysDate = LocalDate.now(ZoneId.of("Asia/Kolkata"));
Assertions.assertTrue(nextDueDateForAnnualFee.isAfter(todaysDate), "Verifying that all due Annual Fees have been paid ");
Truth.assertWithMessage("Verifying that all due Annual Fees have been paid").that(nextDueDateForAnnualFee)
.isGreaterThan(todaysDate);
}
@Test