Skip to content

Commit

Permalink
[CST-14906] Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Sep 24, 2024
1 parent c29abf3 commit e9811a0
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,28 +755,28 @@ public void findAllPaginationTest() throws Exception {
.andExpect(jsonPath("$.page.number", is(2)));

getClient(tokenAdmin).perform(get("/api/config/submissionforms")
.param("size", "2")
.param("page", "3"))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$._embedded.submissionforms[0].id", is("patentStep")))
.andExpect(jsonPath("$._embedded.submissionforms[1].id", is("traditionalpagetwo")))
.andExpect(jsonPath("$._links.first.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=0"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$._links.prev.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=2"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$._links.self.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=3"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$._links.last.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=5"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$.page.size", is(2)))
.andExpect(jsonPath("$.page.totalElements", equalTo(12)))
.andExpect(jsonPath("$.page.totalPages", equalTo(6)))
.andExpect(jsonPath("$.page.number", is(3)));
.param("size", "2")
.param("page", "3"))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$._embedded.submissionforms[0].id", is("patentStep")))
.andExpect(jsonPath("$._embedded.submissionforms[1].id", is("traditionalpagetwo")))
.andExpect(jsonPath("$._links.first.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=0"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$._links.prev.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=2"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$._links.self.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=3"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$._links.last.href", Matchers.allOf(
Matchers.containsString("/api/config/submissionforms?"),
Matchers.containsString("page=5"), Matchers.containsString("size=2"))))
.andExpect(jsonPath("$.page.size", is(2)))
.andExpect(jsonPath("$.page.totalElements", equalTo(12)))
.andExpect(jsonPath("$.page.totalPages", equalTo(6)))
.andExpect(jsonPath("$.page.number", is(3)));

getClient(tokenAdmin).perform(get("/api/config/submissionforms")
.param("size", "2")
Expand Down

0 comments on commit e9811a0

Please sign in to comment.