Search in sources :

Example 6 with InvoiceCollection

use of org.folio.rest.jaxrs.model.InvoiceCollection in project mod-invoice by folio-org.

the class DocumentsApiTest method testGetDocuments.

@Test
public void testGetDocuments() {
    logger.info("=== Test Get Invoices by without query - get 200 by successful retrieval of documents ===");
    final InvoiceCollection resp = verifySuccessGet(DOCUMENT_ENDPOINT, InvoiceCollection.class);
    assertEquals(2, resp.getTotalRecords().intValue());
}
Also used : InvoiceCollection(org.folio.rest.jaxrs.model.InvoiceCollection) Test(org.junit.jupiter.api.Test)

Aggregations

InvoiceCollection (org.folio.rest.jaxrs.model.InvoiceCollection)6 Test (org.junit.jupiter.api.Test)4 JsonObject (io.vertx.core.json.JsonObject)3 List (java.util.List)3 Collectors.toList (java.util.stream.Collectors.toList)3 Invoice (org.folio.rest.jaxrs.model.Invoice)3 Context (io.vertx.core.Context)2 Vertx (io.vertx.core.Vertx)2 IOException (java.io.IOException)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 Optional (java.util.Optional)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 RequestContext (org.folio.rest.core.models.RequestContext)2 Voucher (org.folio.rest.jaxrs.model.Voucher)2 InvoiceLineService (org.folio.services.invoice.InvoiceLineService)2 InvoiceService (org.folio.services.invoice.InvoiceService)2 Matchers.containsString (org.hamcrest.Matchers.containsString)2 Autowired (org.springframework.beans.factory.annotation.Autowired)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1