Skip to content

Commit

Permalink
CIRC-2117: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksat-Galymzhan committed Jul 17, 2024
1 parent e1b076a commit d96c998
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/java/api/ItemsByInstanceResourceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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) {
Expand Down

0 comments on commit d96c998

Please sign in to comment.