Skip to content

Commit

Permalink
Firx remaining tenant provider function mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Jan 22, 2025
1 parent 3ba7eaf commit 0d5cf7e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import java.time.Year;
import java.time.YearMonth;
import java.util.List;
import java.util.Set;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
Expand Down Expand Up @@ -148,7 +150,7 @@ void shouldGenerateQuarterWithCronJob(int month, int quarterIndex, int amountOfI
String expectedLabel = "GJ " + nextYearShort + "/" + (nextYearShort + 1) + "-Q" + quarterIndex;

Mockito.doReturn(YearMonth.of(nextYear, month)).when(quarterBusinessService).getCurrentYearMonth();
Mockito.doReturn(List.of(TestHelper.SCHEMA_PITC)).when(tenantConfigProvider).getAllTenantIds();
Mockito.doReturn(Set.of(TestHelper.SCHEMA_PITC)).when(tenantConfigProvider).getAllTenantIds();

quarterBusinessService.scheduledGenerationQuarters();

Expand Down

0 comments on commit 0d5cf7e

Please sign in to comment.