Skip to content

Commit

Permalink
Update MetadatafieldRestRepositoryIT.java
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Oct 30, 2023
1 parent 5eee4f7 commit 4e6830e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void findAll() throws Exception {
context.restoreAuthSystemState();

getClient().perform(get("/api/core/metadatafields")
.param("size", String.valueOf(100)))
.param("size", String.valueOf(200)))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$._embedded.metadatafields", Matchers.hasItems(
Expand All @@ -95,7 +95,7 @@ public void findAll() throws Exception {
.andExpect(jsonPath("$._links.next.href", Matchers.containsString("/api/core/metadatafields")))
.andExpect(jsonPath("$._links.last.href", Matchers.containsString("/api/core/metadatafields")))

.andExpect(jsonPath("$.page.size", is(100)));
.andExpect(jsonPath("$.page.size", is(200)));
}

@Test
Expand Down Expand Up @@ -139,14 +139,14 @@ public void findBySchema() throws Exception {

getClient().perform(get("/api/core/metadatafields/search/bySchema")
.param("schema", "dc")
.param("size", String.valueOf(100)))
.param("size", String.valueOf(200)))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$._embedded.metadatafields", Matchers.hasItems(
MetadataFieldMatcher.matchMetadataFieldByKeys("dc", "title", null),
MetadataFieldMatcher.matchMetadataFieldByKeys("dc", "date", "issued"))
))
.andExpect(jsonPath("$.page.size", is(100)));
.andExpect(jsonPath("$.page.size", is(200)));

getClient().perform(get("/api/core/metadatafields/search/bySchema")
.param("schema", schema.getName()))
Expand Down

0 comments on commit 4e6830e

Please sign in to comment.