MME-8 Remove count from slice-returning endpoint tests.

This commit is contained in:
Jesse Brault 2026-02-07 21:31:42 -06:00
parent c8e660b596
commit d1df876bb3
2 changed files with 0 additions and 3 deletions

View File

@ -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())

View File

@ -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())