add integration test for (new) ISO-8601 Date Format (FINERACT-926)
using SchedulerJobsTest, just because that's convenient
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
3ac7c29e51
commit
4ade89d57d
+9
@@ -25,6 +25,7 @@ import static org.junit.Assert.assertNotNull;
|
|||||||
import io.restassured.builder.RequestSpecBuilder;
|
import io.restassured.builder.RequestSpecBuilder;
|
||||||
import io.restassured.http.ContentType;
|
import io.restassured.http.ContentType;
|
||||||
import io.restassured.specification.RequestSpecification;
|
import io.restassured.specification.RequestSpecification;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.apache.fineract.integrationtests.common.SchedulerJobHelper;
|
import org.apache.fineract.integrationtests.common.SchedulerJobHelper;
|
||||||
@@ -48,6 +49,14 @@ public class SchedulerJobsTest {
|
|||||||
schedulerJobHelper = new SchedulerJobHelper(requestSpec);
|
schedulerJobHelper = new SchedulerJobHelper(requestSpec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test // FINERACT-926
|
||||||
|
public void testDateFormat() {
|
||||||
|
Map<String, Object> schedulerJob1 = schedulerJobHelper.getSchedulerJobById(1);
|
||||||
|
String nextRunTimeText = (String)schedulerJob1.get("nextRunTime");
|
||||||
|
assertNotNull("nextRunTime == null: " + schedulerJob1, nextRunTimeText);
|
||||||
|
DateTimeFormatter.ISO_INSTANT.parse(nextRunTimeText);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFlippingSchedulerStatus() throws InterruptedException {
|
public void testFlippingSchedulerStatus() throws InterruptedException {
|
||||||
// Retrieving Status of Scheduler
|
// Retrieving Status of Scheduler
|
||||||
|
|||||||
Reference in New Issue
Block a user