Test case for delete recipe - Jomsaruj/coffeemaker GitHub Wiki

Test ID Test Case Name Description Expected Result Actual Result Status
5 testDeleteValidRecipe Given CoffeeMaker with 3 recipes in the system, then we delete the first recipe (at index 0) deleteRecipe(int recipeToDelete) should return deleted recipe name. In this case it should return "Coffee" Same as expected result pass
6 testDeleteEmptySlotRecipe Given CoffeeMaker without any recipe in the system, then we delete the first one (at index 0) deleteRecipe(int recipeToDelete) should return deleted recipe name. In this case there are no recipe so it should return null Same as expected result pass
7 testDeleteDeletedRecipe Given CoffeeMaker with 1 recipe in the system, then we delete that recipe. After that we try to delete that index again deleteRecipe(int recipeToDelete) should return deleted recipe name. In this case there are no recipe, because we already delete it so it should return null deleteRecipe(int recipeToDelete) return empty string fail
40 testGetRecipeAfterDelete Given 1 recipe in the system, then we delete it and call getRecipe to ensure it deleted getRecipe index0 should return null getRecipe index0 return empty string fail