adamsaghy commented on code in PR #3816:
URL: https://github.com/apache/fineract/pull/3816#discussion_r1535305059
##########
fineract-provider/src/test/java/org/apache/fineract/portfolio/account/jobs/executestandinginstructions/ExecutePastAndCurrentInstructionsTest.java:
##########
@@ -0,0 +1,45 @@
+package org.apache.fineract.portfolio.account.jobs.executestandinginstructions;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.math.BigDecimal;
+import java.time.Clock;
+import java.time.LocalDate;
+import org.apache.fineract.infrastructure.core.domain.ActionContext;
+import org.apache.fineract.infrastructure.core.domain.FineractPlatformTenant;
+import org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil;
+import org.apache.fineract.portfolio.account.data.StandingInstructionDuesData;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+
+public class ExecutePastAndCurrentInstructionsTest {
+
+ private final LocalDate currentDate = LocalDate.now(Clock.systemUTC());
+ private final LocalDate previousDate = currentDate.minusDays(2);
+
+ @BeforeEach
+ public void setUp() {
+ ThreadLocalContextUtil.setTenant(new FineractPlatformTenant(1L,
"default", "Default", "Africa/Kampala", null));
+ ThreadLocalContextUtil.setActionContext(ActionContext.DEFAULT);
+ }
+
+ @AfterEach
+ public void tearDown() {
+ ThreadLocalContextUtil.reset();
+ }
+
+ @Test
+ public void testAcceptPreviousDateAsDue() {
+ ExecuteStandingInstructionsTasklet tasklet = new
ExecuteStandingInstructionsTasklet(null, null, null, null);
Review Comment:
This is not an integration test...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]