From d1df876bb35d1b80216e6f993ec0a61476c81bf1 Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Sat, 7 Feb 2026 21:31:42 -0600 Subject: [PATCH] MME-8 Remove count from slice-returning endpoint tests. --- .../java/app/mealsmadeeasy/api/image/ImageControllerTests.java | 1 - .../app/mealsmadeeasy/api/recipe/RecipesControllerTests.java | 2 -- 2 files changed, 3 deletions(-) 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())