Skip to content

Commit

Permalink
[TEST] add more description to test title for update profile API
Browse files Browse the repository at this point in the history
  • Loading branch information
nogamsung committed Jan 5, 2024
1 parent 3bdb7a3 commit c68a8a2
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ void givenFormatPosition_whenUpdateProfile_thenReturn400() throws Exception {
}

@Test
@DisplayName("기술명 20자 초과일시 프로필 업데이트를 하면 400을 반환한다.")
void givenGreaterThan20SkillName_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("기술에 기술명 20자 초과일시 프로필 업데이트를 하면 400을 반환한다.")
void givenGreaterThan20SkillSkillName_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getSkills().get(0).setSkillName("가".repeat(21));
Expand All @@ -298,8 +298,8 @@ void givenGreaterThan20SkillName_whenUpdateProfile_thenReturn400() throws Except
}

@Test
@DisplayName("경험 여부 미입력시 프로필 업데이트를 하면 400을 반환한다.")
void givenBlankIsExperienced_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("기술에 경험 여부 미입력시 프로필 업데이트를 하면 400을 반환한다.")
void givenBlankSkillIsExperienced_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getSkills().get(0).setIsExperienced(null);
Expand All @@ -321,8 +321,8 @@ void givenBlankIsExperienced_whenUpdateProfile_thenReturn400() throws Exception
}

@Test
@DisplayName("올바르지 않은 레벨로 프로필 업데이트를 하면 400을 반환한다.")
void givenFormatLevel_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("기술에 올바르지 않은 레벨로 프로필 업데이트를 하면 400을 반환한다.")
void givenFormatSkillLevel_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getSkills().get(0).setLevel("GOOD");
Expand All @@ -344,8 +344,8 @@ void givenFormatLevel_whenUpdateProfile_thenReturn400() throws Exception {
}

@Test
@DisplayName("학교명 3자 미만일시 프로필 업데이트를 하면 400을 반환한다.")
void givenLessThan3InstitutionName_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("학력에 학교명 3자 미만일시 프로필 업데이트를 하면 400을 반환한다.")
void givenLessThan3EducationInstitutionName_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getEducations().get(0).setInstitutionName("대학");
Expand All @@ -367,8 +367,8 @@ void givenLessThan3InstitutionName_whenUpdateProfile_thenReturn400() throws Exce
}

@Test
@DisplayName("학교명 3자 미만일시 프로필 업데이트를 하면 400을 반환한다.")
void givenGreaterThan20InstitutionName_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("학력에 학교명 3자 미만일시 프로필 업데이트를 하면 400을 반환한다.")
void givenGreaterThan20EducationInstitutionName_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getEducations().get(0).setInstitutionName("대".repeat(21));
Expand All @@ -390,8 +390,8 @@ void givenGreaterThan20InstitutionName_whenUpdateProfile_thenReturn400() throws
}

@Test
@DisplayName("시작일 미입력시 프로필 업데이트를 하면 400을 반환한다.")
void givenBlankStartedAt_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("학력에 시작일 미입력시 프로필 업데이트를 하면 400을 반환한다.")
void givenBlankEducationStartedAt_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getEducations().get(0).setStartedAt(null);
Expand All @@ -413,8 +413,8 @@ void givenBlankStartedAt_whenUpdateProfile_thenReturn400() throws Exception {
}

@Test
@DisplayName("현재 여부 미입력시 프로필 업데이트를 하면 400을 반환한다.")
void givenBlankIsCurrent_whenUpdateProfile_thenReturn400() throws Exception {
@DisplayName("학력에 현재 여부 미입력시 프로필 업데이트를 하면 400을 반환한다.")
void givenBlankEducationIsCurrent_whenUpdateProfile_thenReturn400() throws Exception {
// given
ProfileUpdateRequest request = createValidProfileUpdateRequest();
request.getEducations().get(0).setIsCurrent(null);
Expand Down

0 comments on commit c68a8a2

Please sign in to comment.