Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static Category createWithIsPublic(String name, User user, CategoryColor

private static void validateName(String name) {
int characterCount = TextUtil.countGraphemeClusters(name);
if (characterCount > 300) {
if (characterCount > 10) {
throw new CategoryNameLengthOverException();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ void getUsedColorsByUser_IndependentColorManagement() {
// user1은 COLOR1~COLOR5 사용
for (int i = 1; i <= 5; i++) {
CategoryColor color = CategoryColor.valueOf("COLOR" + i);
categoryRepository.save(Category.createWithIsPublic("user1카테고리" + i, user1, color, true));
categoryRepository.save(Category.createWithIsPublic("usr1카테고리" + i, user1, color, true));
}

// user2는 COLOR6~COLOR10 사용
for (int i = 6; i <= 10; i++) {
CategoryColor color = CategoryColor.valueOf("COLOR" + i);
categoryRepository.save(Category.createWithIsPublic("user2카테고리" + i, user2, color, true));
categoryRepository.save(Category.createWithIsPublic("usr2카테고리" + i, user2, color, true));
}

// when
Expand Down