Skip to content

Commit

Permalink
browse - Updated IT according to updated cfg (#339)
Browse files Browse the repository at this point in the history
* Removed not defined search options.

* Updated IT according to a cfg updates.
  • Loading branch information
milanmajchrak authored Jun 22, 2023
1 parent 3136308 commit cf61d34
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,19 @@ public void findAll() throws Exception {
//Our default Discovery config has 4 browse indexes so we expect this to be reflected in the page
// object
.andExpect(jsonPath("$.page.size", is(20)))
.andExpect(jsonPath("$.page.totalElements", is(8)))
.andExpect(jsonPath("$.page.totalElements", is(4)))
.andExpect(jsonPath("$.page.totalPages", is(1)))
.andExpect(jsonPath("$.page.number", is(0)))

//The array of browse index should have a size 8
.andExpect(jsonPath("$._embedded.browses", hasSize(8)))
//The array of browse index should have a size 4
.andExpect(jsonPath("$._embedded.browses", hasSize(4)))

//Check that all (and only) the default browse indexes are present
.andExpect(jsonPath("$._embedded.browses", containsInAnyOrder(
BrowseIndexMatcher.dateIssuedBrowseIndex("asc"),
BrowseIndexMatcher.contributorBrowseIndex("asc"),
BrowseIndexMatcher.titleBrowseIndex("asc"),
BrowseIndexMatcher.subjectBrowseIndex("asc"),
BrowseIndexMatcher.publisherBrowseIndex("asc"),
BrowseIndexMatcher.languageBrowseIndex("asc"),
BrowseIndexMatcher.itemtypeBrowseIndex("asc"),
BrowseIndexMatcher.rightsBrowseIndex("asc")
BrowseIndexMatcher.subjectBrowseIndex("asc")
)))
;
}
Expand Down

0 comments on commit cf61d34

Please sign in to comment.