Search in sources :

Example 1 with FeeFineService

use of org.folio.circulation.services.feefine.FeeFineService 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)));
}
Also used : FeeFineFacade(org.folio.circulation.services.FeeFineFacade) FeeFineOwnerRepository(org.folio.circulation.infrastructure.storage.feesandfines.FeeFineOwnerRepository) FeeFineActionRepository(org.folio.circulation.infrastructure.storage.feesandfines.FeeFineActionRepository) AccountRepository(org.folio.circulation.infrastructure.storage.feesandfines.AccountRepository) ScheduledNoticesRepository(org.folio.circulation.infrastructure.storage.notices.ScheduledNoticesRepository) ServicePointRepository(org.folio.circulation.infrastructure.storage.ServicePointRepository) ItemRepository(org.folio.circulation.infrastructure.storage.inventory.ItemRepository) FeeFineRepository(org.folio.circulation.infrastructure.storage.feesandfines.FeeFineRepository) UserRepository(org.folio.circulation.infrastructure.storage.users.UserRepository) FeeFineService(org.folio.circulation.services.feefine.FeeFineService) OverdueFinePolicyRepository(org.folio.circulation.infrastructure.storage.loans.OverdueFinePolicyRepository) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ServicePointRepository (org.folio.circulation.infrastructure.storage.ServicePointRepository)1 AccountRepository (org.folio.circulation.infrastructure.storage.feesandfines.AccountRepository)1 FeeFineActionRepository (org.folio.circulation.infrastructure.storage.feesandfines.FeeFineActionRepository)1 FeeFineOwnerRepository (org.folio.circulation.infrastructure.storage.feesandfines.FeeFineOwnerRepository)1 FeeFineRepository (org.folio.circulation.infrastructure.storage.feesandfines.FeeFineRepository)1 ItemRepository (org.folio.circulation.infrastructure.storage.inventory.ItemRepository)1 OverdueFinePolicyRepository (org.folio.circulation.infrastructure.storage.loans.OverdueFinePolicyRepository)1 ScheduledNoticesRepository (org.folio.circulation.infrastructure.storage.notices.ScheduledNoticesRepository)1 UserRepository (org.folio.circulation.infrastructure.storage.users.UserRepository)1 FeeFineFacade (org.folio.circulation.services.FeeFineFacade)1 FeeFineService (org.folio.circulation.services.feefine.FeeFineService)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1