Skip to content

Commit

Permalink
fix: 지명 85자 이하로 명세 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Libienz committed Sep 25, 2024
1 parent 44bc225 commit 6988a59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@Entity
public class TraveloguePlace extends BaseEntity {

private static final int PLACE_NAME_MAX_LENGTH = 60;
private static final int PLACE_NAME_MAX_LENGTH = 85;
private static final int MAX_DESCRIPTION_LENGTH = 300;

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ void createTraveloguePlaceWithInvalidLengthDescription() {
@DisplayName("장소 이름의 길이가 60자를 초과하는 경우 장소 생성 시 예외가 발생한다")
@Test
void createPlaceWithInvalidLengthPlaceName() {
String length61 = "Under the summer sun, feeling the cool breeze by the sea is pure joy!!";
String length86 = "Under the warm summer sun, feeling the cool breeze by the sea is absolute pure joy!!!!";

assertThatThrownBy(
() -> new TraveloguePlace(VALID_ORDER, VALID_DESC, length61, VALID_LAT, VALID_LNG, VALID_DAY)
() -> new TraveloguePlace(VALID_ORDER, VALID_DESC, length86, VALID_LAT, VALID_LNG, VALID_DAY)
)
.isInstanceOf(BadRequestException.class)
.hasMessage("장소 이름은 60자 이하여야 합니다");

.hasMessage("장소 이름은 85자 이하여야 합니다");
}
}

0 comments on commit 6988a59

Please sign in to comment.