MME-8 Remove count from slice-returning endpoint tests.
This commit is contained in:
parent
c8e660b596
commit
d1df876bb3
@ -139,7 +139,6 @@ public class ImageControllerTests {
|
|||||||
.header("Authorization", "Bearer " + this.getAccessToken(owner))
|
.header("Authorization", "Bearer " + this.getAccessToken(owner))
|
||||||
)
|
)
|
||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(jsonPath("$.count").value(1))
|
|
||||||
.andExpect(jsonPath("$.content").isArray())
|
.andExpect(jsonPath("$.content").isArray())
|
||||||
.andExpect(jsonPath("$.content").isNotEmpty())
|
.andExpect(jsonPath("$.content").isNotEmpty())
|
||||||
.andExpect(jsonPath("$.content[0].url").isNotEmpty())
|
.andExpect(jsonPath("$.content[0].url").isNotEmpty())
|
||||||
|
|||||||
@ -182,7 +182,6 @@ public class RecipesControllerTests {
|
|||||||
final Recipe recipe = this.createTestRecipe(owner, true);
|
final Recipe recipe = this.createTestRecipe(owner, true);
|
||||||
this.mockMvc.perform(get("/recipes"))
|
this.mockMvc.perform(get("/recipes"))
|
||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(jsonPath("$.count").isNotEmpty())
|
|
||||||
.andExpect(jsonPath("$.slice.number").value(0))
|
.andExpect(jsonPath("$.slice.number").value(0))
|
||||||
.andExpect(jsonPath("$.slice.size").value(20))
|
.andExpect(jsonPath("$.slice.size").value(20))
|
||||||
.andExpect(jsonPath("$.content").isArray())
|
.andExpect(jsonPath("$.content").isArray())
|
||||||
@ -201,7 +200,6 @@ public class RecipesControllerTests {
|
|||||||
.header("Authorization", "Bearer " + loginDetails.getAccessToken().getToken())
|
.header("Authorization", "Bearer " + loginDetails.getAccessToken().getToken())
|
||||||
)
|
)
|
||||||
.andExpect(status().isOk())
|
.andExpect(status().isOk())
|
||||||
.andExpect(jsonPath("$.count").isNotEmpty())
|
|
||||||
.andExpect(jsonPath("$.slice.number").value(0))
|
.andExpect(jsonPath("$.slice.number").value(0))
|
||||||
.andExpect(jsonPath("$.slice.size").value(20))
|
.andExpect(jsonPath("$.slice.size").value(20))
|
||||||
.andExpect(jsonPath("$.content").isArray())
|
.andExpect(jsonPath("$.content").isArray())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user