Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
clorenz committed Jun 2, 2022
1 parent 1910860 commit 6c19682
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private PageResponse<User> createObject() {
pageRequest.setFiltering(filtering);

pageResponse.setPageRequest(pageRequest);
pageResponse.setExecutedSearchTerm("Hello");

return pageResponse;
}
Expand All @@ -66,6 +67,7 @@ public void differentTypes() throws Exception {
resp.setPageRequest(pageRequest);
resp.setContent(content);
resp.setTotalElements(2);
resp.setExecutedSearchTerm("Label");

checkSerializeDeserialize(
resp, "serializedTestObjects/list/paging/PageResponse_differentTypes.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public int hashCode() {
result += 31 * (int) (total ^ total >>> 32);
result += 31 * (listRequest == null ? 0 : listRequest.hashCode());
result += 31 * content.hashCode();
result += 31 * executedSearchTerm.hashCode();
result += 31 * (executedSearchTerm == null ? 0 : executedSearchTerm.hashCode());

return result;
}
Expand Down

0 comments on commit 6c19682

Please sign in to comment.