use of org.folio.circulation.infrastructure.storage.feesandfines.FeeFineActionRepository in project mod-circulation by folio-org.
the class OverdueFineServiceTest method setUp.
@BeforeEach
public void setUp() {
overdueFinePolicyRepository = mock(OverdueFinePolicyRepository.class);
accountRepository = mock(AccountRepository.class);
itemRepository = mock(ItemRepository.class);
feeFineOwnerRepository = mock(FeeFineOwnerRepository.class);
feeFineRepository = mock(FeeFineRepository.class);
overduePeriodCalculatorService = mock(OverduePeriodCalculatorService.class);
UserRepository userRepository = mock(UserRepository.class);
feeFineActionRepository = mock(FeeFineActionRepository.class);
scheduledNoticesRepository = mock(ScheduledNoticesRepository.class);
servicePointRepository = mock(ServicePointRepository.class);
FeeFineService feeFineService = mock(FeeFineService.class);
FeeFineFacade feeFineFacade = new FeeFineFacade(accountRepository, feeFineActionRepository, userRepository, servicePointRepository, feeFineService);
overdueFineService = new OverdueFineService(overdueFinePolicyRepository, itemRepository, feeFineOwnerRepository, feeFineRepository, scheduledNoticesRepository, overduePeriodCalculatorService, feeFineFacade);
when(userRepository.getUser(any(String.class))).thenReturn(completedFuture(succeeded(LOGGED_IN_USER)));
}
Aggregations