Skip to content

Commit

Permalink
CIRCSTORE-542 Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkurash committed Dec 9, 2024
1 parent bd76009 commit 76740b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/org/folio/rest/api/RequestsApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,15 @@ public void canCreateRequestWithEcsRequestPhase() throws MalformedURLException,
.create(),
requestStorageUrl()).getJson();
assertThat(representation.getString("ecsRequestPhase"), is("Secondary"));

representation = createEntity(
new RequestRequestBuilder()
.page()
.intermediate()
.withId(UUID.randomUUID())
.create(),
requestStorageUrl()).getJson();
assertThat(representation.getString("ecsRequestPhase"), is("Intermediate"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,8 @@ public RequestRequestBuilder secondary() {
return withEcsRequestPhase("Secondary");
}

public RequestRequestBuilder intermediate() {
return withEcsRequestPhase("Intermediate");
}

}

0 comments on commit 76740b4

Please sign in to comment.