diff --git a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/SchedulerJobsTest.java b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/SchedulerJobsTest.java index 65cfad9c4..3ce443c97 100644 --- a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/SchedulerJobsTest.java +++ b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/SchedulerJobsTest.java @@ -25,6 +25,7 @@ import static org.junit.Assert.assertNotNull; import io.restassured.builder.RequestSpecBuilder; import io.restassured.http.ContentType; import io.restassured.specification.RequestSpecification; +import java.time.format.DateTimeFormatter; import java.util.List; import java.util.Map; import org.apache.fineract.integrationtests.common.SchedulerJobHelper; @@ -48,6 +49,14 @@ public class SchedulerJobsTest { schedulerJobHelper = new SchedulerJobHelper(requestSpec); } + @Test // FINERACT-926 + public void testDateFormat() { + Map schedulerJob1 = schedulerJobHelper.getSchedulerJobById(1); + String nextRunTimeText = (String)schedulerJob1.get("nextRunTime"); + assertNotNull("nextRunTime == null: " + schedulerJob1, nextRunTimeText); + DateTimeFormatter.ISO_INSTANT.parse(nextRunTimeText); + } + @Test public void testFlippingSchedulerStatus() throws InterruptedException { // Retrieving Status of Scheduler