Search in sources :

Example 11 with TitlePutRequest

use of org.folio.rest.jaxrs.model.TitlePutRequest in project mod-kb-ebsco-java by folio-org.

the class TitlePutRequestConverterTest method shouldCreateRequestToUpdateIsPeerReviewedForCustomResource.

@Test
public void shouldCreateRequestToUpdateIsPeerReviewedForCustomResource() {
    TitlePutRequest request = createEmptyTitlePutRequest();
    request.getData().getAttributes().setIsPeerReviewed(false);
    ResourcePut resourcePut = converter.convertToRMAPICustomResourcePutRequest(request, ResourcesTestData.createResourceData().getTitle().getCustomerResourcesList().get(0));
    assertFalse(resourcePut.getIsPeerReviewed());
}
Also used : TitlePutRequest(org.folio.rest.jaxrs.model.TitlePutRequest) ResourcePut(org.folio.holdingsiq.model.ResourcePut) Test(org.junit.Test)

Aggregations

TitlePutRequest (org.folio.rest.jaxrs.model.TitlePutRequest)11 Test (org.junit.Test)8 ResourcePut (org.folio.holdingsiq.model.ResourcePut)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)3 ResponseDefinitionBuilder (com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder)3 RegexPattern (com.github.tomakehurst.wiremock.matching.RegexPattern)3 UrlPathPattern (com.github.tomakehurst.wiremock.matching.UrlPathPattern)3 Tags (org.folio.rest.jaxrs.model.Tags)3 DbTitle (org.folio.repository.titles.DbTitle)2 Matchers.containsString (org.hamcrest.Matchers.containsString)2 AsyncResult (io.vertx.core.AsyncResult)1 Context (io.vertx.core.Context)1 Handler (io.vertx.core.Handler)1 Vertx (io.vertx.core.Vertx)1 List (java.util.List)1 Map (java.util.Map)1 Objects (java.util.Objects)1 UUID (java.util.UUID)1 CompletableFuture (java.util.concurrent.CompletableFuture)1 CompletableFuture.completedFuture (java.util.concurrent.CompletableFuture.completedFuture)1