Skip to content

Commit 39d675f

Browse files
committed
test: 레시피 수정 시 연관관계 오류 수정에 따른 불필요한 테스트 제거
1 parent 72bf1b2 commit 39d675f

2 files changed

Lines changed: 0 additions & 52 deletions

File tree

src/test/groovy/com/recipe/app/src/recipe/domain/RecipeIngredientTest.groovy

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff 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:

src/test/groovy/com/recipe/app/src/recipe/domain/RecipeProcessTest.groovy

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)