diff --git a/fineract-provider/src/main/java/org/apache/fineract/commands/domain/CommandSourceRepository.java b/fineract-provider/src/main/java/org/apache/fineract/commands/domain/CommandSourceRepository.java index 13b6affbb..31dbe21a4 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/commands/domain/CommandSourceRepository.java +++ b/fineract-provider/src/main/java/org/apache/fineract/commands/domain/CommandSourceRepository.java @@ -18,7 +18,7 @@ */ package org.apache.fineract.commands.domain; -import java.time.LocalDate; +import java.time.OffsetDateTime; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; @@ -30,6 +30,6 @@ public interface CommandSourceRepository extends JpaRepository dateCriteriaCaptor = ArgumentCaptor.forClass(LocalDate.class); + ArgumentCaptor dateCriteriaCaptor = ArgumentCaptor.forClass(OffsetDateTime.class); when(configurationDomainService.retrieveProcessedCommandsPurgeDaysCriteria()).thenReturn(2L); // when resultStatus = underTest.execute(stepContribution, chunkContext); // then verify(repository, times(1)).deleteOlderEventsWithStatus(Mockito.any(), Mockito.any()); verify(repository).deleteOlderEventsWithStatus(Mockito.any(), dateCriteriaCaptor.capture()); - LocalDate expectedDateForPurgeCriteriaTest = DateUtils.getBusinessLocalDate().minusDays(2); - LocalDate actualDateForPurgeCriteria = dateCriteriaCaptor.getValue(); + OffsetDateTime expectedDateForPurgeCriteriaTest = DateUtils.getOffsetDateTimeOfTenant().minusDays(2); + OffsetDateTime actualDateForPurgeCriteria = dateCriteriaCaptor.getValue(); assertEquals(expectedDateForPurgeCriteriaTest, actualDateForPurgeCriteria); assertEquals(RepeatStatus.FINISHED, resultStatus); } diff --git a/integration-tests/build.gradle b/integration-tests/build.gradle index e1969a2ca..5eb324723 100644 --- a/integration-tests/build.gradle +++ b/integration-tests/build.gradle @@ -57,7 +57,7 @@ cargo { downloadDir = file("$buildDir/download") extractDir = file("$buildDir/tomcat-integration-tests") } - startStopTimeout = 240000 + startStopTimeout = 300000 sharedClasspath = configurations.driver containerProperties { def jvmArgs = '--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED '