Search in sources :

Example 1 with MaterialTypesClient

use of org.folio.rest.support.client.MaterialTypesClient in project mod-inventory-storage by folio-org.

the class InstanceStorageTest method beforeAny.

@BeforeClass
public static void beforeAny() throws MalformedURLException, InterruptedException, ExecutionException, TimeoutException {
    StorageTestSuite.deleteAll(itemsStorageUrl(""));
    StorageTestSuite.deleteAll(holdingsStorageUrl(""));
    StorageTestSuite.deleteAll(instancesStorageUrl(""));
    StorageTestSuite.deleteAll(locationsStorageUrl(""));
    StorageTestSuite.deleteAll(locInstitutionStorageUrl(""));
    StorageTestSuite.deleteAll(locCampusStorageUrl(""));
    StorageTestSuite.deleteAll(locLibraryStorageUrl(""));
    StorageTestSuite.deleteAll(materialTypesStorageUrl(""));
    StorageTestSuite.deleteAll(loanTypesStorageUrl(""));
    bookMaterialTypeId = UUID.fromString(new MaterialTypesClient(client, materialTypesStorageUrl("")).create("book"));
    mainLibraryLocationId = LocationsTest.createLocation(null, "Main Library (Inst)", "I/M");
    annexLocationId = LocationsTest.createLocation(null, "Annex Library (Inst)", "I/A");
    canCirculateLoanTypeId = UUID.fromString(new LoanTypesClient(client, loanTypesStorageUrl("")).create("Can Circulate"));
}
Also used : MaterialTypesClient(org.folio.rest.support.client.MaterialTypesClient) LoanTypesClient(org.folio.rest.support.client.LoanTypesClient) BeforeClass(org.junit.BeforeClass)

Aggregations

LoanTypesClient (org.folio.rest.support.client.LoanTypesClient)1 MaterialTypesClient (org.folio.rest.support.client.MaterialTypesClient)1 BeforeClass (org.junit.BeforeClass)1