diff --git a/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java b/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java index 51c1582..f6e34b1 100644 --- a/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java +++ b/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java @@ -139,7 +139,6 @@ public class ImageControllerTests { .header("Authorization", "Bearer " + this.getAccessToken(owner)) ) .andExpect(status().isOk()) - .andExpect(jsonPath("$.count").value(1)) .andExpect(jsonPath("$.content").isArray()) .andExpect(jsonPath("$.content").isNotEmpty()) .andExpect(jsonPath("$.content[0].url").isNotEmpty()) diff --git a/src/integrationTest/java/app/mealsmadeeasy/api/recipe/RecipesControllerTests.java b/src/integrationTest/java/app/mealsmadeeasy/api/recipe/RecipesControllerTests.java index a26f5e3..1a7d5c2 100644 --- a/src/integrationTest/java/app/mealsmadeeasy/api/recipe/RecipesControllerTests.java +++ b/src/integrationTest/java/app/mealsmadeeasy/api/recipe/RecipesControllerTests.java @@ -182,7 +182,6 @@ public class RecipesControllerTests { final Recipe recipe = this.createTestRecipe(owner, true); this.mockMvc.perform(get("/recipes")) .andExpect(status().isOk()) - .andExpect(jsonPath("$.count").isNotEmpty()) .andExpect(jsonPath("$.slice.number").value(0)) .andExpect(jsonPath("$.slice.size").value(20)) .andExpect(jsonPath("$.content").isArray()) @@ -201,7 +200,6 @@ public class RecipesControllerTests { .header("Authorization", "Bearer " + loginDetails.getAccessToken().getToken()) ) .andExpect(status().isOk()) - .andExpect(jsonPath("$.count").isNotEmpty()) .andExpect(jsonPath("$.slice.number").value(0)) .andExpect(jsonPath("$.slice.size").value(20)) .andExpect(jsonPath("$.content").isArray())