-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
ada2ac4
commit cfbc66b
Showing
34 changed files
with
210 additions
and
176 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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ public class CafeAcceptanceTest extends AcceptanceTest { | |
@Test | ||
@DisplayName("카페를 정상적으로 등록한다") | ||
void cafeSave() { | ||
CafeRegisterRequest request = new CafeRegisterRequest("1", "메리네 카페"); | ||
CafeRegisterRequest request = new CafeRegisterRequest("1", "메리네 카페", "서울시 강남구"); | ||
|
||
RestAssured.given().log().all() | ||
.contentType(MediaType.APPLICATION_JSON_VALUE) | ||
|
@@ -36,7 +36,7 @@ void cafeSave() { | |
@DisplayName("특정 카페 정보를 조회한다") | ||
void findCafe() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -55,7 +55,7 @@ void findCafe() { | |
@DisplayName("카페에 대한 리뷰를 작성한다") | ||
void saveCafeReview() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -83,7 +83,7 @@ void saveCafeReview() { | |
@DisplayName("카페에 대해 내가 작성한 리뷰를 조회한다") | ||
void findMyCafeReview() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -103,7 +103,7 @@ void findMyCafeReview() { | |
@DisplayName("카페에 대한 리뷰를 다시 작성할 수 없다") | ||
void saveCafeReviewManyTimes() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -126,7 +126,7 @@ void saveCafeReviewManyTimes() { | |
@DisplayName("등록한 카페에 대한 리뷰를 수정한다") | ||
void updateCafeReview() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
@@ -157,7 +157,7 @@ void updateCafeReview() { | |
@DisplayName("등록하지 않은 카페에 대한 리뷰는 수정할 수 없다") | ||
void updateCafeReviewNotFoundReview() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
@@ -178,7 +178,7 @@ void updateCafeReviewNotFoundReview() { | |
@DisplayName("카페 정보를 미리보기한다") | ||
void previewCafe() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest1 = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
MemberSignUpRequest signUpRequest2 = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "메리"); | ||
|
@@ -206,9 +206,9 @@ void getCafesFilterStudyType() { | |
String mapId1 = "12332312"; | ||
String mapId2 = "12355412"; | ||
String mapId3 = "18486512"; | ||
카페_등록(new CafeRegisterRequest(mapId1, "메리네 카페 본점")); | ||
카페_등록(new CafeRegisterRequest(mapId2, "메리네 카페 2호점")); | ||
카페_등록(new CafeRegisterRequest(mapId3, "메리네 카페 3호점")); | ||
카페_등록(new CafeRegisterRequest(mapId1, "메리네 카페 본점", "서울시 강남구")); | ||
카페_등록(new CafeRegisterRequest(mapId2, "메리네 카페 2호점", "서울시 강남구")); | ||
카페_등록(new CafeRegisterRequest(mapId3, "메리네 카페 3호점", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
@@ -242,9 +242,9 @@ void getCafesFilterFavorites() { | |
String mapId1 = "12332312"; | ||
String mapId2 = "12355412"; | ||
String mapId3 = "18486512"; | ||
카페_등록(new CafeRegisterRequest(mapId1, "메리네 카페 본점")); | ||
카페_등록(new CafeRegisterRequest(mapId2, "메리네 카페 2호점")); | ||
카페_등록(new CafeRegisterRequest(mapId3, "메리네 카페 3호점")); | ||
카페_등록(new CafeRegisterRequest(mapId1, "메리네 카페 본점", "서울시 강남구")); | ||
카페_등록(new CafeRegisterRequest(mapId2, "메리네 카페 2호점", "서울시 강남구")); | ||
카페_등록(new CafeRegisterRequest(mapId3, "메리네 카페 3호점", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
@@ -270,7 +270,7 @@ void getCafesFilterFavorites() { | |
@DisplayName("특정 카페 이미지들을 조회한다") | ||
void getCafeImages() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페 본점")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페 본점", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ public class CommentAcceptanceTest extends AcceptanceTest { | |
void saveComment() { | ||
String expected = "공부하기 좋아요~🥰"; | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -51,7 +51,7 @@ void saveComment() { | |
@DisplayName("카페 코멘트 목록을 조회한다") | ||
void findComments() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -71,7 +71,7 @@ void findComments() { | |
@DisplayName("카페 코멘트 첫번째 목록을 조회한다") | ||
void findCommentsFirstPage() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "베어네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "베어네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "베어"); | ||
회원_가입(signUpRequest); | ||
|
@@ -94,7 +94,7 @@ void findCommentsFirstPage() { | |
@DisplayName("카페 코멘트 첫번째 목록을 제외한 페이지를 조회한다") | ||
void findCommentsNotFirstPage() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "베어네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "베어네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "베어"); | ||
회원_가입(signUpRequest); | ||
|
@@ -117,7 +117,7 @@ void findCommentsNotFirstPage() { | |
@DisplayName("카페 코멘트 목록 중 내가 작성한 코멘트만을 조회한다") | ||
void findOnlyMyComments() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -145,7 +145,7 @@ void findOnlyMyComments() { | |
void updateComment() { | ||
String content = "공부하기 좋아요~🥰"; | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
@@ -179,7 +179,7 @@ void updateComment() { | |
void deleteComment() { | ||
String content = "공부하기 좋아요~🥰"; | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "100")); | ||
|
||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ public class CommentLikeAcceptanceTest extends AcceptanceTest{ | |
void saveCommentLike() { | ||
String mapId = "12332312"; | ||
String comment = "코딩하고 싶어지는 카페에요."; | ||
카페_등록(new CafeRegisterRequest(mapId, "정우네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "정우네 카페", "서울시 강남구")); | ||
|
||
MemberSignUpRequest signUpRequest1 = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "베어"); | ||
회원_가입(signUpRequest1); | ||
|
@@ -43,7 +43,7 @@ void saveCommentLike() { | |
void deleteCommentLike() { | ||
String mapId = "12332312"; | ||
String comment = "코딩하고 싶어지는 카페에요."; | ||
카페_등록(new CafeRegisterRequest(mapId, "정우네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "정우네 카페", "서울시 강남구")); | ||
|
||
MemberSignUpRequest signUpRequest1 = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "베어"); | ||
회원_가입(signUpRequest1); | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ public class FavoriteAcceptanceTest extends AcceptanceTest { | |
@DisplayName("회원이 카페 즐겨찾기 등록을 진행한다") | ||
void saveFavoriteCafe() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
@@ -34,7 +34,7 @@ void saveFavoriteCafe() { | |
@DisplayName("회원이 카페 즐겨찾기 삭제를 진행한다") | ||
void deleteFavoriteCafe() { | ||
String mapId = "12332312"; | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페")); | ||
카페_등록(new CafeRegisterRequest(mapId, "메리네 카페", "서울시 강남구")); | ||
MemberSignUpRequest signUpRequest = new MemberSignUpRequest("[email protected]", "a1b2c3d4", "케이"); | ||
회원_가입(signUpRequest); | ||
String token = 로그인_토큰_발급(signUpRequest.getEmail(), signUpRequest.getPassword()); | ||
|
Oops, something went wrong.