-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class MemberAcceptanceTest extends AcceptanceTest { | ||
public static final String EMAIL = "email@email.com"; | ||
public static final String EMAIL = "email2@email.com"; | ||
public static final String PASSWORD = "password"; | ||
public static final int AGE = 20; | ||
|
||
|
@@ -67,10 +67,32 @@ void deleteMember() { | |
@DisplayName("회원 정보를 관리한다.") | ||
@Test | ||
void manageMember() { | ||
// given | ||
ExtractableResponse<Response> createResponse = 회원_생성_요청(EMAIL, PASSWORD, AGE); | ||
String newEmail = "[email protected]"; | ||
|
||
// when | ||
ExtractableResponse<Response> response = 회원_정보_수정_요청(createResponse, newEmail, PASSWORD, AGE); | ||
ExtractableResponse<Response> member = 회원_정보_조회_요청(createResponse); | ||
|
||
// then | ||
assertThat(response.statusCode()).isEqualTo(HttpStatus.OK.value()); | ||
assertThat(member.jsonPath().getString("email")).isEqualTo(newEmail); | ||
} | ||
|
||
@DisplayName("나의 정보를 관리한다.") | ||
@Test | ||
void manageMyInfo() { | ||
// given | ||
ExtractableResponse<Response> createResponse = 회원_생성_요청(EMAIL, PASSWORD, AGE); | ||
String newEmail = "[email protected]"; | ||
|
||
// when | ||
ExtractableResponse<Response> response = 베이직_인증으로_내_회원_정보_수정_요청(EMAIL, PASSWORD, newEmail, PASSWORD, AGE); | ||
ExtractableResponse<Response> member = 회원_정보_조회_요청(createResponse); | ||
|
||
// then | ||
assertThat(response.statusCode()).isEqualTo(HttpStatus.OK.value()); | ||
assertThat(member.jsonPath().getString("email")).isEqualTo(newEmail); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters