use of org.folio.services.voucher.VoucherCommandService in project mod-invoice by folio-org.
the class InvoiceCancelServiceTest method initMocks.
@BeforeEach
public void initMocks() {
requestContextMock = Mockito.mock(RequestContext.class, new RuntimeExceptionAnswer());
restClient = Mockito.mock(RestClient.class, new RuntimeExceptionAnswer());
doReturn(Vertx.vertx().getOrCreateContext()).when(requestContextMock).getContext();
BaseTransactionService baseTransactionService = new BaseTransactionService(restClient);
OrderTransactionSummaryService orderTransactionSummaryService = new OrderTransactionSummaryService(restClient);
EncumbranceService encumbranceService = new EncumbranceService(baseTransactionService, orderTransactionSummaryService);
InvoiceTransactionSummaryService invoiceTransactionSummaryService = new InvoiceTransactionSummaryService(restClient);
VoucherRetrieveService voucherRetrieveService = new VoucherRetrieveService(restClient);
VoucherCommandService voucherCommandService = new VoucherCommandService(restClient, null, voucherRetrieveService, null, null, null);
OrderLineService orderLineService = new OrderLineService(restClient);
InvoiceLineService invoiceLineService = new InvoiceLineService(restClient);
OrderService orderService = new OrderService(restClient, invoiceLineService, orderLineService);
cancelService = new InvoiceCancelService(baseTransactionService, encumbranceService, invoiceTransactionSummaryService, voucherCommandService, orderLineService, orderService);
}
Aggregations