diff --git a/src/test/java/api/ItemsByInstanceResourceTest.java b/src/test/java/api/ItemsByInstanceResourceTest.java index 9d304821e0..1c40218142 100644 --- a/src/test/java/api/ItemsByInstanceResourceTest.java +++ b/src/test/java/api/ItemsByInstanceResourceTest.java @@ -15,7 +15,6 @@ import org.folio.circulation.support.http.client.Response; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Assertions; import api.support.APITests; import api.support.builders.SearchInstanceBuilder; @@ -80,8 +79,7 @@ void canGetInstanceById() { @Test void canGetEmptyResult() { - IndividualResource instance = instancesFixture.basedUponDunkirk(); - UUID instanceId = instance.getId(); + UUID instanceId = instancesFixture.basedUponDunkirk().getId(); // create item in tenant "college" setTempTenantId(TENANT_ID_COLLEGE); @@ -107,7 +105,7 @@ void canGetEmptyResult() { Response response = get(String.format("query=(id==%s)", instanceId), 200); JsonObject responseJson = response.getJson(); - Assertions.assertTrue(responseJson.isEmpty()); + assertThat(responseJson.isEmpty(), is(true)); } private Response get(String query, int expectedStatusCode) {