Skip to content

Commit

Permalink
[#148] fix: 카테고리에서 블로그 의존성을 제거함에 따라 예외 메세지 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang committed Dec 12, 2023
1 parent b6bc27f commit 61b7e3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/mallang/category/TieredCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void validateNoChildrenInParent(T parent) {
if (equals(root) && root.getPreviousSibling() == null && root.getNextSibling() == null) {
return;
}
throw new CategoryHierarchyViolationException("블로드에 존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
throw new CategoryHierarchyViolationException("존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
} else {
if (!parent.getChildren().isEmpty()) {
throw new CategoryHierarchyViolationException("주어진 부모의 자식 카테고리와의 관계가 명시되지 않았습니다.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,11 @@ class 형제들이_주어지지_않았을_때 {
assertThatThrownBy(() -> {
target.updateHierarchy(null, null, null);
}).isInstanceOf(CategoryHierarchyViolationException.class)
.hasMessage("블로드에 존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
.hasMessage("존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
assertThatThrownBy(() -> {
prev.updateHierarchy(null, null, null);
}).isInstanceOf(CategoryHierarchyViolationException.class)
.hasMessage("블로드에 존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
.hasMessage("존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
}

@Test
Expand All @@ -459,7 +459,7 @@ class 형제들이_주어지지_않았을_때 {
assertThatThrownBy(() -> {
child.updateHierarchy(null, null, null);
}).isInstanceOf(CategoryHierarchyViolationException.class)
.hasMessage("블로드에 존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
.hasMessage("존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
}

@Test
Expand All @@ -475,7 +475,7 @@ class 형제들이_주어지지_않았을_때 {
assertThatThrownBy(() -> {
child.updateHierarchy(null, null, null);
}).isInstanceOf(CategoryHierarchyViolationException.class)
.hasMessage("블로드에 존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
.hasMessage("존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
}

@Test
Expand All @@ -489,7 +489,7 @@ class 형제들이_주어지지_않았을_때 {
assertThatThrownBy(() -> {
root.updateHierarchy(null, null, null);
}).isInstanceOf(CategoryHierarchyViolationException.class)
.hasMessage("블로드에 존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
.hasMessage("존재하는 다른 최상위 카테고리와의 관계가 명시되지 않았습니다.");
}

@Test
Expand Down

0 comments on commit 61b7e3d

Please sign in to comment.