Skip to content

Commit

Permalink
refactor: 인수 테스트 로깅 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 committed May 30, 2024
1 parent 72c1c83 commit af17a42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/test/java/com/funeat/acceptance/auth/LoginSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ public class LoginSteps {
return given()
.param("code", String.valueOf(memberId))
.when()
.log().all()
.get("/api/login/oauth2/code/kakao")
.then()
.log().all()
.extract();
}

Expand All @@ -42,10 +40,8 @@ public class LoginSteps {
return RestAssured.given()
.queryParam("code", String.valueOf(memberId))
.when()
.log().all()
.get("/api/login/oauth2/code/kakao")
.then()
.log().all()
.extract()
.response()
.getCookie("SESSION");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ public class ProductSteps {

public static ExtractableResponse<Response> 상품_상세_조회_요청(final Long productId) {
return given()
.log().all()
.when()
.get("/api/products/{product_id}", productId)
.then().log().all()
.then()
.extract();
}

Expand Down
12 changes: 4 additions & 8 deletions src/test/java/com/funeat/acceptance/review/ReviewSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ public class ReviewSteps {
return requestSpec
.multiPart("reviewRequest", request, "application/json")
.when()
.log().all()
.post("/api/products/{productId}/reviews", productId)
.then()
.log().all()
.extract();
}

Expand Down Expand Up @@ -61,7 +59,7 @@ public class ReviewSteps {
return given()
.queryParam("sort", sort)
.queryParam("page", page)
.queryParam("lastReviewId", lastReviewId).log().all()
.queryParam("lastReviewId", lastReviewId)
.when()
.get("/api/products/{product_id}/reviews", productId)
.then()
Expand All @@ -75,10 +73,10 @@ public class ReviewSteps {
.cookie("SESSION", loginCookie)
.queryParam("sort", sort)
.queryParam("page", page)
.queryParam("lastReviewId", lastReviewId).log().all()
.queryParam("lastReviewId", lastReviewId)
.when()
.get("/api/products/{product_id}/reviews", productId)
.then().log().all()
.then()
.extract();
}

Expand All @@ -94,17 +92,15 @@ public class ReviewSteps {
return given()
.when()
.get("/api/ranks/products/{product_id}/reviews", productId)
.then().log().all()
.then()
.extract();
}

public static ExtractableResponse<Response> 리뷰_상세_조회_요청(final Long reviewId) {
return given()
.when()
.log().all()
.get("/api/reviews/{reviewId}", reviewId)
.then()
.log().all()
.extract();
}
}

0 comments on commit af17a42

Please sign in to comment.