This is an automated email from the ASF dual-hosted git repository.

vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 12b15cd  Improve assertion in SchedulerJobsTestResults (FINERACT-924)
12b15cd is described below

commit 12b15cdf2b81c258ce8296ab2ee72a590acc407b
Author: Michael Vorburger <[email protected]>
AuthorDate: Fri Jan 15 21:13:59 2021 +0100

    Improve assertion in SchedulerJobsTestResults (FINERACT-924)
---
 .../apache/fineract/integrationtests/SchedulerJobsTestResults.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 a6b7381..af8c1e7 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
@@ -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

Reply via email to