File tree Expand file tree Collapse file tree
src/test/groovy/com/recipe/app/src/recipe/domain Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,33 +71,6 @@ class RecipeIngredientTest extends Specification {
7171 null || " 레시피 재료명을 입력해주세요."
7272 }
7373
74- def " 레시피 재료 삭제" () {
75-
76- given :
77- Recipe recipe = Recipe . builder()
78- .recipeNm(" 제목" )
79- .introduction(" 설명" )
80- .level(RecipeLevel . NORMAL )
81- .userId(1L )
82- .isHidden(false )
83- .build()
84-
85- RecipeIngredient ingredient = RecipeIngredient . builder()
86- .recipeIngredientId(1L )
87- .recipe(recipe)
88- .ingredientName(" 재료" )
89- .ingredientIconId(1L )
90- .quantity(" 1" )
91- .unit(" 개" )
92- .build()
93-
94- when :
95- ingredient. delete()
96-
97- then :
98- ingredient. recipe == null
99- }
100-
10174 def " 이름이 일치하는 레시피 재료가 냉장고 존재하는지 확인" () {
10275
10376 given :
Original file line number Diff line number Diff line change @@ -89,29 +89,4 @@ class RecipeProcessTest extends Specification {
8989 " " || " 레시피 요리 과정 설명을 입력해주세요."
9090 null || " 레시피 요리 과정 설명을 입력해주세요."
9191 }
92-
93- def " 레시피 과정 삭제" () {
94-
95- given :
96- Recipe recipe = Recipe . builder()
97- .recipeNm(" 제목" )
98- .introduction(" 설명" )
99- .level(RecipeLevel . NORMAL )
100- .userId(1L )
101- .isHidden(false )
102- .build()
103-
104- RecipeProcess process = RecipeProcess . builder()
105- .recipe(recipe)
106- .cookingNo(1 )
107- .cookingDescription(" 과정" )
108- .recipeProcessImgUrl(" " )
109- .build()
110-
111- when :
112- process. delete()
113-
114- then :
115- process. recipe == null
116- }
11792}
You can’t perform that action at this time.
0 commit comments