Skip to content

Commit

Permalink
♻️ refactor for code convention
Browse files Browse the repository at this point in the history
  • Loading branch information
tackyu committed Jul 25, 2024
1 parent 0e3a81c commit cca2971
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ static Stream<Arguments> substitutions() {
"''",
"' '",
})
@DisplayName("재료 이름에 곡백 λ˜λŠ” null은 ν—ˆμš©ν•˜μ§€ μ•ŠλŠ”λ‹€.")
@DisplayName("재료 이름에 곡백 λ˜λŠ” null이 μž…λ ₯되면 μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.")
void validateName(String name) {
assertThatThrownBy(() -> new IngredientCreateRequest(name, Requirement.ALTERNATIVE, List.of("wheat")))
.isInstanceOf(InvalidNameException.class);
}

@ParameterizedTest
@MethodSource("substitutions")
@DisplayName("ALTERNATIVE μƒνƒœμΌ λ•Œ, λŒ€μ²΄ 재료 이름에 곡백 λ˜λŠ” null은 ν—ˆμš©ν•˜μ§€ μ•ŠλŠ”λ‹€.")
@DisplayName("ALTERNATIVE μƒνƒœμΌ λ•Œ, λŒ€μ²΄ 재료 이름에 곡백 λ˜λŠ” null이 μž…λ ₯되면 μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.")
void validateSubstitutionName(List<String> substitutions) {
assertThatThrownBy(() -> new IngredientCreateRequest("rice", Requirement.ALTERNATIVE, substitutions))
.isInstanceOf(InvalidNameException.class);
}

@Test
@DisplayName("ALTERNATIVE μƒνƒœμΌ λ•Œ, λŒ€μ²΄ 재료 λ¦¬μŠ€νŠΈμ— null은 ν—ˆμš©ν•˜μ§€ μ•ŠλŠ”λ‹€.")
@DisplayName("ALTERNATIVE μƒνƒœμΌ λ•Œ, λŒ€μ²΄ 재료 λ¦¬μŠ€νŠΈμ— null이 μž…λ ₯되면 μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.")
void validateSubstitutionIsNull() {
assertThatThrownBy(() -> new IngredientCreateRequest("rice", Requirement.ALTERNATIVE, null))
.isInstanceOf(InvalidNameException.class);
Expand Down

0 comments on commit cca2971

Please sign in to comment.