Skip to content

Commit

Permalink
add validation for pageNr and pageSize #EA-3872
Browse files Browse the repository at this point in the history
  • Loading branch information
gsergiu committed Nov 28, 2024
1 parent a104d7f commit fe89af9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public void getUserSetPaginationPageSizeExceeded() throws Exception {
final String requestedPageSize = "200";
MockHttpServletResponse response = mockMvc
.perform(get(BASE_URL + "{identifier}", userSet.getIdentifier())
.queryParam(CommonApiConstants.QUERY_PARAM_PROFILE, SetPageProfile.ITEMS.getProfileParamValue())
.queryParam(CommonApiConstants.QUERY_PARAM_PROFILE, SetPageProfile.ITEMS_META.getProfileParamValue())
.queryParam(CommonApiConstants.QUERY_PARAM_PAGE, String.valueOf(WebUserSetFields.DEFAULT_PAGE))
.queryParam(CommonApiConstants.QUERY_PARAM_PAGE_SIZE, requestedPageSize)
.header(HttpHeaders.AUTHORIZATION, regularUserToken)
Expand Down

0 comments on commit fe89af9

Please sign in to comment.