Search in sources :

Example 1 with Ledger

use of org.folio.rest.acq.model.finance.Ledger in project mod-invoice by folio-org.

the class MockServer method handleGetLedgerRecordsById.

private void handleGetLedgerRecordsById(RoutingContext ctx) {
    // a3ec5552-c4a4-4a15-a57c-0046db536369
    logger.info("handleGetLedgerRecordsById got: GET " + ctx.request().path());
    String id = ctx.request().getParam(AbstractHelper.ID);
    logger.info("id: " + id);
    if (ID_FOR_INTERNAL_SERVER_ERROR.equals(id)) {
        serverResponse(ctx, 500, APPLICATION_JSON, Response.Status.INTERNAL_SERVER_ERROR.getReasonPhrase());
    } else {
        List<Ledger> ledgers = null;
        try {
            ledgers = new JsonObject(getMockData(LEDGERS_PATH)).mapTo(LedgerCollection.class).getLedgers();
        } catch (IOException e) {
            ledgers = Collections.emptyList();
        }
        Optional<Ledger> ledger = ledgers.stream().filter(ledgerP -> ledgerP.getId().equals(id)).findAny();
        if (!ledger.isPresent()) {
            ledger = ledgers.stream().filter(ledgerP -> ledgerP.getId().equals(EXISTING_LEDGER_ID)).findAny();
        }
        ledger.get().setId(id);
        JsonObject jsonLedger = JsonObject.mapFrom(ledger.get());
        addServerRqRsData(HttpMethod.GET, LEDGERS, jsonLedger);
        serverResponse(ctx, 200, APPLICATION_JSON, jsonLedger.encodePrettily());
    }
}
Also used : BAD_QUERY(org.folio.rest.impl.InvoicesApiTest.BAD_QUERY) HttpServer(io.vertx.core.http.HttpServer) Header(io.restassured.http.Header) HashBasedTable(com.google.common.collect.HashBasedTable) StringUtils(org.apache.commons.lang3.StringUtils) TransactionCollection(org.folio.rest.acq.model.finance.TransactionCollection) CompositePurchaseOrder(org.folio.rest.acq.model.orders.CompositePurchaseOrder) VoucherLine(org.folio.rest.acq.model.VoucherLine) ExpenseClass(org.folio.rest.acq.model.finance.ExpenseClass) Voucher(org.folio.rest.jaxrs.model.Voucher) Matcher(java.util.regex.Matcher) ProfileSnapshotWrapper(org.folio.rest.jaxrs.model.ProfileSnapshotWrapper) VOUCHER_NUMBER_VALUE(org.folio.rest.impl.ApiTestBase.VOUCHER_NUMBER_VALUE) JsonObject(io.vertx.core.json.JsonObject) VOUCHERS_LIST_PATH(org.folio.rest.impl.VouchersApiTest.VOUCHERS_LIST_PATH) EXISTING_VENDOR_INV_NO(org.folio.rest.impl.InvoicesApiTest.EXISTING_VENDOR_INV_NO) ID_FOR_INTERNAL_SERVER_ERROR(org.folio.rest.impl.ApiTestBase.ID_FOR_INTERNAL_SERVER_ERROR) Budget(org.folio.rest.acq.model.finance.Budget) INVOICE_LINES_MOCK_DATA_PATH(org.folio.rest.impl.InvoiceLinesApiTest.INVOICE_LINES_MOCK_DATA_PATH) BatchVoucherExport(org.folio.rest.jaxrs.model.BatchVoucherExport) INVOICE_CONFIG_MODULE_NAME(org.folio.rest.impl.InvoiceHelper.INVOICE_CONFIG_MODULE_NAME) CompositePoLine(org.folio.rest.acq.model.orders.CompositePoLine) Ledger(org.folio.rest.acq.model.finance.Ledger) Fund(org.folio.rest.acq.model.finance.Fund) Logger(org.apache.logging.log4j.Logger) OrderInvoiceRelationshipCollection(org.folio.rest.acq.model.orders.OrderInvoiceRelationshipCollection) ID_FOR_INTERNAL_SERVER_ERROR_PUT(org.folio.rest.impl.ApiTestBase.ID_FOR_INTERNAL_SERVER_ERROR_PUT) INVOICE_MOCK_DATA_PATH(org.folio.rest.impl.InvoicesApiTest.INVOICE_MOCK_DATA_PATH) ApiTestBase.getMockData(org.folio.rest.impl.ApiTestBase.getMockData) CONFIGURATION_ID(org.folio.rest.impl.BatchVoucherExportConfigCredentialsTest.CONFIGURATION_ID) TEXT_PLAIN(javax.ws.rs.core.MediaType.TEXT_PLAIN) Invoice(org.folio.rest.jaxrs.model.Invoice) SYSTEM_CONFIG_MODULE_NAME(org.folio.rest.impl.InvoiceHelper.SYSTEM_CONFIG_MODULE_NAME) FOLIO_INVOICE_NUMBER_VALUE(org.folio.rest.impl.ApiTestBase.FOLIO_INVOICE_NUMBER_VALUE) ALL_UNITS_CQL(org.folio.invoices.utils.HelperUtils.ALL_UNITS_CQL) ExportConfig(org.folio.rest.jaxrs.model.ExportConfig) IS_DELETED_PROP(org.folio.invoices.utils.HelperUtils.IS_DELETED_PROP) BATCH_VOUCHER_EXPORTS_LIST_PATH(org.folio.rest.impl.BatchVoucherExportsApiTest.BATCH_VOUCHER_EXPORTS_LIST_PATH) Transaction(org.folio.rest.acq.model.finance.Transaction) Supplier(java.util.function.Supplier) BudgetCollection(org.folio.rest.acq.model.finance.BudgetCollection) ArrayList(java.util.ArrayList) BATCH_VOUCHER_EXPORTS_MOCK_DATA_PATH(org.folio.rest.impl.BatchVoucherExportsApiTest.BATCH_VOUCHER_EXPORTS_MOCK_DATA_PATH) InvoiceLineCollection(org.folio.rest.jaxrs.model.InvoiceLineCollection) BatchVoucher(org.folio.rest.jaxrs.model.BatchVoucher) ExchangeRate(org.folio.rest.acq.model.finance.ExchangeRate) ExpenseClassCollection(org.folio.rest.acq.model.finance.ExpenseClassCollection) VOUCHER_MOCK_DATA_PATH(org.folio.rest.impl.VouchersApiTest.VOUCHER_MOCK_DATA_PATH) VOUCHER_LINES_MOCK_DATA_PATH(org.folio.rest.impl.VoucherLinesApiTest.VOUCHER_LINES_MOCK_DATA_PATH) VoucherLineCollection(org.folio.rest.acq.model.VoucherLineCollection) INTERNAL_SERVER_ERROR(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR) InvoiceDocument(org.folio.rest.jaxrs.model.InvoiceDocument) AcquisitionsUnit(org.folio.rest.acq.model.units.AcquisitionsUnit) Vertx(io.vertx.core.Vertx) IOException(java.io.IOException) CompositeFund(org.folio.rest.acq.model.finance.CompositeFund) ExecutionException(java.util.concurrent.ExecutionException) DAYS(java.time.temporal.ChronoUnit.DAYS) BudgetExpenseClassCollection(org.folio.rest.acq.model.finance.BudgetExpenseClassCollection) UnixFakeFileSystem(org.mockftpserver.fake.filesystem.UnixFakeFileSystem) BATCH_VOUCHER_EXPORT_CONFIGS_SAMPLE_PATH(org.folio.rest.impl.BatchVoucherExportConfigTest.BATCH_VOUCHER_EXPORT_CONFIGS_SAMPLE_PATH) AcquisitionsUnitCollection(org.folio.rest.acq.model.units.AcquisitionsUnitCollection) BASE_MOCK_DATA_PATH(org.folio.rest.impl.ApiTestBase.BASE_MOCK_DATA_PATH) BATCH_VOUCHER_EXPORT_CONFIG_CREDENTIALS_SAMPLE_PATH_WITH_ID(org.folio.rest.impl.BatchVoucherExportConfigCredentialsTest.BATCH_VOUCHER_EXPORT_CONFIG_CREDENTIALS_SAMPLE_PATH_WITH_ID) VOUCHER_NUMBER_PREFIX_CONFIG(org.folio.services.voucher.VoucherCommandService.VOUCHER_NUMBER_PREFIX_CONFIG) Date(java.util.Date) TimeoutException(java.util.concurrent.TimeoutException) Router(io.vertx.ext.web.Router) LOCALE_SETTINGS(org.folio.rest.impl.InvoiceHelper.LOCALE_SETTINGS) FakeFtpServer(org.mockftpserver.fake.FakeFtpServer) RoutingContext(io.vertx.ext.web.RoutingContext) BodyHandler(io.vertx.ext.web.handler.BodyHandler) SequenceNumber(org.folio.rest.acq.model.SequenceNumber) APPLICATION_XML(javax.ws.rs.core.MediaType.APPLICATION_XML) FUND_ID_WITH_NOT_ACTIVE_BUDGET(org.folio.rest.impl.InvoicesApiTest.FUND_ID_WITH_NOT_ACTIVE_BUDGET) DocumentCollection(org.folio.rest.jaxrs.model.DocumentCollection) BATCH_VOUCHER_EXPORT_CONFIG_BAD_CREDENTIALS_SAMPLE_PATH_WITH_ID(org.folio.rest.impl.BatchVoucherExportConfigCredentialsTest.BATCH_VOUCHER_EXPORT_CONFIG_BAD_CREDENTIALS_SAMPLE_PATH_WITH_ID) BatchVoucherExportCollection(org.folio.rest.jaxrs.model.BatchVoucherExportCollection) INVOICE_SAMPLE_DOCUMENTS_PATH(org.folio.rest.impl.DocumentsApiTest.INVOICE_SAMPLE_DOCUMENTS_PATH) Assert.fail(org.junit.Assert.fail) APPLICATION_JSON(javax.ws.rs.core.MediaType.APPLICATION_JSON) BATCH_GROUPS_LIST_PATH(org.folio.rest.impl.BatchGroupsApiTest.BATCH_GROUPS_LIST_PATH) EXPENSE_CLASSES_LIST_PATH(org.folio.rest.impl.InvoicesApiTest.EXPENSE_CLASSES_LIST_PATH) InvoiceCollection(org.folio.rest.jaxrs.model.InvoiceCollection) InvoiceLine(org.folio.rest.jaxrs.model.InvoiceLine) INVOICE_LINE_NUMBER_VALUE(org.folio.rest.impl.ApiTestBase.INVOICE_LINE_NUMBER_VALUE) HttpHeaders(io.vertx.core.http.HttpHeaders) PROTECTED_READ_ONLY_TENANT(org.folio.rest.impl.ApiTestBase.PROTECTED_READ_ONLY_TENANT) UUID(java.util.UUID) Instant(java.time.Instant) BatchGroup(org.folio.rest.acq.model.BatchGroup) INVOICE_DOCUMENTS_SAMPLE_PATH(org.folio.rest.impl.DocumentsApiTest.INVOICE_DOCUMENTS_SAMPLE_PATH) List(java.util.List) FiscalYearCollection(org.folio.rest.acq.model.finance.FiscalYearCollection) Response(javax.ws.rs.core.Response) AcquisitionsUnitMembershipCollection(org.folio.rest.acq.model.units.AcquisitionsUnitMembershipCollection) StreamEx(one.util.streamex.StreamEx) Optional(java.util.Optional) Pattern(java.util.regex.Pattern) UserAccount(org.mockftpserver.fake.UserAccount) FileSystem(org.mockftpserver.fake.filesystem.FileSystem) Json(io.vertx.core.json.Json) Credentials(org.folio.rest.jaxrs.model.Credentials) Document(org.folio.rest.jaxrs.model.Document) OKAPI_HEADER_TENANT(org.folio.rest.RestVerticle.OKAPI_HEADER_TENANT) HashMap(java.util.HashMap) CompletableFuture(java.util.concurrent.CompletableFuture) FiscalYear(org.folio.rest.acq.model.finance.FiscalYear) VoucherCollection(org.folio.rest.jaxrs.model.VoucherCollection) Function(java.util.function.Function) LedgerCollection(org.folio.rest.acq.model.finance.LedgerCollection) ExportConfigCollection(org.folio.rest.jaxrs.model.ExportConfigCollection) EXISTING_LEDGER_ID(org.folio.rest.impl.InvoicesApiTest.EXISTING_LEDGER_ID) EMPTY(org.apache.commons.lang3.StringUtils.EMPTY) VOUCHER_NUMBER_CONFIG_NAME(org.folio.services.voucher.VoucherCommandService.VOUCHER_NUMBER_CONFIG_NAME) Config(org.folio.rest.jaxrs.model.Config) ACQUISITIONS_UNIT_ID(org.folio.rest.impl.ProtectionHelper.ACQUISITIONS_UNIT_ID) BATCH_GROUP_MOCK_DATA_PATH(org.folio.rest.impl.BatchGroupsApiTest.BATCH_GROUP_MOCK_DATA_PATH) BATCH_VOUCHER_MOCK_DATA_PATH(org.folio.rest.impl.BatchVoucherImplTest.BATCH_VOUCHER_MOCK_DATA_PATH) Configs(org.folio.rest.jaxrs.model.Configs) ID_DOES_NOT_EXIST(org.folio.rest.impl.ApiTestBase.ID_DOES_NOT_EXIST) EXPENSE_CLASSES_MOCK_DATA_PATH(org.folio.rest.impl.InvoicesApiTest.EXPENSE_CLASSES_MOCK_DATA_PATH) Iterator(java.util.Iterator) ResourcePathResolver(org.folio.invoices.utils.ResourcePathResolver) DirectoryEntry(org.mockftpserver.fake.filesystem.DirectoryEntry) BatchGroupCollection(org.folio.rest.acq.model.BatchGroupCollection) INVOICE_ID(org.folio.invoices.utils.HelperUtils.INVOICE_ID) TimeUnit(java.util.concurrent.TimeUnit) Collectors.toList(java.util.stream.Collectors.toList) HttpMethod(io.vertx.core.http.HttpMethod) QUERY_PARAM_START_WITH(org.folio.invoices.utils.HelperUtils.QUERY_PARAM_START_WITH) HttpStatus(org.folio.HttpStatus) FundCollection(org.folio.rest.acq.model.finance.FundCollection) Collections(java.util.Collections) Table(com.google.common.collect.Table) LogManager(org.apache.logging.log4j.LogManager) BATCH_VOUCHER_EXPORT_CONFIG_SAMPLE_PATH(org.folio.rest.impl.BatchVoucherExportConfigTest.BATCH_VOUCHER_EXPORT_CONFIG_SAMPLE_PATH) Ledger(org.folio.rest.acq.model.finance.Ledger) JsonObject(io.vertx.core.json.JsonObject) IOException(java.io.IOException)

Example 2 with Ledger

use of org.folio.rest.acq.model.finance.Ledger in project mod-orders by folio-org.

the class EncumbranceRelationsHoldersBuilder method mapRestrictEncumbranceToHolders.

private List<EncumbranceRelationsHolder> mapRestrictEncumbranceToHolders(List<Ledger> ledgers, List<EncumbranceRelationsHolder> encumbranceHolders) {
    Map<String, Ledger> idLedgerMap = ledgers.stream().collect(toMap(Ledger::getId, Function.identity()));
    encumbranceHolders.stream().filter(holder -> Objects.nonNull(holder.getLedgerId())).forEach(holder -> {
        Ledger ledger = idLedgerMap.get(holder.getLedgerId());
        holder.withRestrictEncumbrances(Optional.ofNullable(ledger).map(Ledger::getRestrictEncumbrance).orElse(false));
    });
    return encumbranceHolders;
}
Also used : Cost(org.folio.rest.jaxrs.model.Cost) CurrencyConversion(javax.money.convert.CurrencyConversion) BudgetService(org.folio.service.finance.budget.BudgetService) Collectors.groupingBy(java.util.stream.Collectors.groupingBy) CompletableFuture(java.util.concurrent.CompletableFuture) FolioVertxCompletableFuture(org.folio.completablefuture.FolioVertxCompletableFuture) Transaction(org.folio.rest.acq.model.finance.Transaction) Function(java.util.function.Function) Collectors.toMap(java.util.stream.Collectors.toMap) CompositePurchaseOrder(org.folio.rest.jaxrs.model.CompositePurchaseOrder) Collectors.mapping(java.util.stream.Collectors.mapping) Map(java.util.Map) RequestContext(org.folio.rest.core.models.RequestContext) Encumbrance(org.folio.rest.acq.model.finance.Encumbrance) FundService(org.folio.service.finance.FundService) Budget(org.folio.rest.acq.model.finance.Budget) Ongoing(org.folio.rest.jaxrs.model.Ongoing) ExchangeRateProviderResolver(org.folio.service.exchange.ExchangeRateProviderResolver) ConversionQuery(javax.money.convert.ConversionQuery) EncumbranceRelationsHolder(org.folio.models.EncumbranceRelationsHolder) Ledger(org.folio.rest.acq.model.finance.Ledger) HelperUtils.getConversionQuery(org.folio.orders.utils.HelperUtils.getConversionQuery) FiscalYearService(org.folio.service.finance.FiscalYearService) Fund(org.folio.rest.acq.model.finance.Fund) FundDistribution(org.folio.rest.jaxrs.model.FundDistribution) Collectors(java.util.stream.Collectors) Objects(java.util.Objects) Collectors.toList(java.util.stream.Collectors.toList) List(java.util.List) LedgerService(org.folio.service.finance.LedgerService) ExchangeRateProvider(javax.money.convert.ExchangeRateProvider) CompositePoLine(org.folio.rest.jaxrs.model.CompositePoLine) Tags(org.folio.rest.acq.model.finance.Tags) Optional(java.util.Optional) Ledger(org.folio.rest.acq.model.finance.Ledger)

Example 3 with Ledger

use of org.folio.rest.acq.model.finance.Ledger in project mod-orders by folio-org.

the class BudgetRestrictionServiceTest method checkEnoughMoneyInBudgetShouldPassIfTransactionsAmountDifferenceLessThanBudgetRemainingAmount.

@Test
void checkEnoughMoneyInBudgetShouldPassIfTransactionsAmountDifferenceLessThanBudgetRemainingAmount() {
    String fiscalYearId = UUID.randomUUID().toString();
    String fundId = UUID.randomUUID().toString();
    String ledgerId = UUID.randomUUID().toString();
    String budgetId = UUID.randomUUID().toString();
    Transaction existingTransaction = new Transaction().withTransactionType(Transaction.TransactionType.ENCUMBRANCE).withAmount(50d).withFiscalYearId(fiscalYearId).withFromFundId(fundId).withCurrency("USD");
    Transaction newTransaction = new Transaction().withTransactionType(Transaction.TransactionType.ENCUMBRANCE).withAmount(60d).withFiscalYearId(fiscalYearId).withFromFundId(fundId).withCurrency("USD");
    Budget budget = new Budget().withId(budgetId).withFiscalYearId(fiscalYearId).withFundId(fundId).withAllocated(59d).withAvailable(9d).withTotalFunding(59d).withUnavailable(50d).withAwaitingPayment(50D).withAllowableEncumbrance(150d);
    Fund fund = new Fund().withId(fundId).withLedgerId(ledgerId);
    Ledger ledger = new Ledger().withId(ledgerId).withRestrictEncumbrance(true);
    List<EncumbranceRelationsHolder> holders = new ArrayList<>();
    EncumbranceRelationsHolder holder = new EncumbranceRelationsHolder().withOldEncumbrance(existingTransaction).withNewEncumbrance(newTransaction).withBudget(budget).withLedgerId(fund.getLedgerId()).withRestrictEncumbrances(ledger.getRestrictExpenditures()).withCurrentFiscalYearId(fiscalYearId).withCurrency("USD");
    holders.add(holder);
    assertDoesNotThrow(() -> restrictionService.checkEncumbranceRestrictions(holders));
}
Also used : Transaction(org.folio.rest.acq.model.finance.Transaction) Fund(org.folio.rest.acq.model.finance.Fund) Ledger(org.folio.rest.acq.model.finance.Ledger) EncumbranceRelationsHolder(org.folio.models.EncumbranceRelationsHolder) ArrayList(java.util.ArrayList) Budget(org.folio.rest.acq.model.finance.Budget) Test(org.junit.jupiter.api.Test)

Example 4 with Ledger

use of org.folio.rest.acq.model.finance.Ledger in project mod-orders by folio-org.

the class MockServer method getLedgersByIds.

private JsonObject getLedgersByIds(List<String> ledgerByFundIds) {
    Supplier<List<Ledger>> getFromFile = () -> {
        try {
            return new JsonObject(getMockData(LEDGERS_PATH)).mapTo(LedgerCollection.class).getLedgers();
        } catch (IOException e) {
            return Collections.emptyList();
        }
    };
    List<Ledger> ledgers = getMockEntries(LEDGERS, Ledger.class).orElseGet(getFromFile);
    if (!ledgerByFundIds.isEmpty()) {
        ledgers.removeIf(item -> !ledgerByFundIds.contains(item.getId()));
    }
    Object record = new LedgerCollection().withLedgers(ledgers).withTotalRecords(ledgers.size());
    return JsonObject.mapFrom(record);
}
Also used : Ledger(org.folio.rest.acq.model.finance.Ledger) JsonObject(io.vertx.core.json.JsonObject) LedgerCollection(org.folio.rest.acq.model.finance.LedgerCollection) ArrayList(java.util.ArrayList) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) JsonObject(io.vertx.core.json.JsonObject) IOException(java.io.IOException)

Example 5 with Ledger

use of org.folio.rest.acq.model.finance.Ledger in project mod-orders by folio-org.

the class EncumbranceRelationsHoldersBuilderTest method testShouldPopulateHoldersWithCorrespondingLedgerData.

@Test
void testShouldPopulateHoldersWithCorrespondingLedgerData() {
    // given
    Fund fund1 = new Fund().withId(holder1.getFundId()).withLedgerId(UUID.randomUUID().toString());
    Fund fund2 = new Fund().withId(holder2.getFundId()).withLedgerId(UUID.randomUUID().toString());
    Fund fund3 = new Fund().withId(holder3.getFundId()).withLedgerId(UUID.randomUUID().toString());
    Ledger ledger1 = new Ledger().withId(fund1.getLedgerId()).withRestrictEncumbrance(true);
    Ledger ledger2 = new Ledger().withId(fund2.getLedgerId()).withRestrictEncumbrance(true);
    Ledger ledger3 = new Ledger().withId(fund3.getLedgerId()).withRestrictEncumbrance(false);
    List<EncumbranceRelationsHolder> holders = new ArrayList<>();
    holders.add(holder1);
    holders.add(holder2);
    holders.add(holder3);
    when(fundService.getAllFunds(anyCollection(), any())).thenReturn(CompletableFuture.completedFuture(List.of(fund1, fund2, fund3)));
    when(ledgerService.getLedgersByIds(anyCollection(), any())).thenReturn(CompletableFuture.completedFuture(List.of(ledger2, ledger1, ledger3)));
    // When
    encumbranceRelationsHoldersBuilder.withLedgersData(holders, requestContextMock).join();
    // Then
    assertEquals(ledger1.getId(), holder1.getLedgerId());
    assertEquals(ledger1.getRestrictEncumbrance(), holder1.getRestrictEncumbrance());
    assertEquals(ledger2.getId(), holder2.getLedgerId());
    assertEquals(ledger2.getRestrictEncumbrance(), holder2.getRestrictEncumbrance());
    assertEquals(ledger3.getId(), holder3.getLedgerId());
    assertEquals(ledger3.getRestrictEncumbrance(), holder3.getRestrictEncumbrance());
}
Also used : Fund(org.folio.rest.acq.model.finance.Fund) Ledger(org.folio.rest.acq.model.finance.Ledger) EncumbranceRelationsHolder(org.folio.models.EncumbranceRelationsHolder) ArrayList(java.util.ArrayList) Test(org.junit.jupiter.api.Test)

Aggregations

Ledger (org.folio.rest.acq.model.finance.Ledger)12 Fund (org.folio.rest.acq.model.finance.Fund)9 ArrayList (java.util.ArrayList)7 Budget (org.folio.rest.acq.model.finance.Budget)7 Test (org.junit.jupiter.api.Test)7 Transaction (org.folio.rest.acq.model.finance.Transaction)6 List (java.util.List)5 Collectors.toList (java.util.stream.Collectors.toList)5 JsonObject (io.vertx.core.json.JsonObject)4 IOException (java.io.IOException)4 Optional (java.util.Optional)3 Function (java.util.function.Function)3 ReEncumbranceHolder (org.folio.models.ReEncumbranceHolder)3 FundDistribution (org.folio.rest.jaxrs.model.FundDistribution)3 Matchers.containsString (org.hamcrest.Matchers.containsString)3 Headers (io.restassured.http.Headers)2 Vertx (io.vertx.core.Vertx)2 HttpMethod (io.vertx.core.http.HttpMethod)2 Collections (java.util.Collections)2 Date (java.util.Date)2