Updated for Fall 2026
The backend implementation+test workshop will focus on creating the composition relationship between Recipe and a list of arbitrary Ingredients. We will not consider the Inventory of Ingredients; we will only consider an Ingredient for a recipe and the amount of that Ingredient for the recipe. Additionally, we will not fully implement the functionality to add/remove Ingredients from Recipe. Instead, we’ll focus on demonstrating the relationship and talking about the important backend concepts.
We will start with a few process tasks and some updates of the Recipe functionality to remove the specific ingredients.
Workshop Issue
Create an issue in GitHub associated with the task of completing the workshop. Here are the tasks you must complete as part of this workshop:
- Create workshop branch
- Update
Recipe*to remove coffee, milk, sugar, and chocolateRecipeentity and associated testsRecipeDtoRecipeMapperRecipeServiceandRecipeServiceImpland associated testsRecipeControllerand associated tests
- Implement + Test
Ingredient*IngrediententityIngredientRepositoryand associated testsIngredientDtoIngredientMapperIngredientServiceandIngredientServiceImpland associated testsIngredientControllerand associated tests- Run System Tests
- Implement + Test
Recipe*with list ofIngredientsRecipeentity and associated testsRecipeDtoRecipeMapper- Run System Tests
Workshop Branch
Create a branch of development for the workshop. Name it something appropriate like be-implementation-workshop.
Recipe Updates
You’ll make the following updates to remove any reference to a specific ingredient in the Recipe* classes.
Update Recipe entity and Associated Tests
- Delete the fields
coffee,milk,sugar, andchocolate - Delete the associated getters/setters
- Delete the parameters and statements setting the ingredient fields from the parameterized
Recipe()constructor - In
RecipeRepositoryTest, update the constructors of anyRecipeobjects to remove values for the specific ingredients
Update RecipeDto
- Delete the fields
coffee,milk,sugar, andchocolate - Delete the associated getters/setters
- Delete the parameters and statements setting the ingredient fields from the parameterized
RecipeDto()constructor
Update RecipeMapper
- Update the
RecipeMappermethods to use the newRecipeandRecipeDtoconstructors
Update RecipeServiceImpl and Associated Tests
- Delete any code that uses removed getters/setters
- Update the tests as needed to compile with the changes to
Recipe
It’s ok if the tests are failing for the moment. We’ll be making additional updates to RecipeService later and we’ll focus on testing updates on those changes.
Update RecipeController and Associated Tests
- Delete any code that uses removed getters/setters
- Update the tests as needed to compile with the changes to
Recipe
It’s ok if the tests are failing for the moment. We’ll be making additional updates to RecipeService later and we’ll focus on testing updates on those changes.
Update MakeRecipeService and MakeRecipeController
If there are any compiler errors in MakeRecipeService or MakeRecipeController, comment out code until your code is compiling. You’ll fix these implementations in the individual portion of Milestone 4.
Commit/Push
Your goal should be that your code compiles after removing specific ingredients from the Recipe* classes. You don’t need to update Inventory*. The workshop doesn’t consider the connection of Ingredients to the Inventory.
Don’t forget to tie the commit to the issue as part of the commit message!
Onward!
Proceed to Part 1: Ingredient Implementation.
