From af17a42cbf6b4653e7f09d1c3b5673e541ccf752 Mon Sep 17 00:00:00 2001 From: 70825 Date: Thu, 30 May 2024 17:03:28 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9D=B8=EC=88=98=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EB=A1=9C=EA=B9=85=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/funeat/acceptance/auth/LoginSteps.java | 4 ---- .../com/funeat/acceptance/product/ProductSteps.java | 3 +-- .../com/funeat/acceptance/review/ReviewSteps.java | 12 ++++-------- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/test/java/com/funeat/acceptance/auth/LoginSteps.java b/src/test/java/com/funeat/acceptance/auth/LoginSteps.java index a160c1e4..92d2f48c 100644 --- a/src/test/java/com/funeat/acceptance/auth/LoginSteps.java +++ b/src/test/java/com/funeat/acceptance/auth/LoginSteps.java @@ -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(); } @@ -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"); diff --git a/src/test/java/com/funeat/acceptance/product/ProductSteps.java b/src/test/java/com/funeat/acceptance/product/ProductSteps.java index 8c989c2a..512f4f5a 100644 --- a/src/test/java/com/funeat/acceptance/product/ProductSteps.java +++ b/src/test/java/com/funeat/acceptance/product/ProductSteps.java @@ -21,10 +21,9 @@ public class ProductSteps { public static ExtractableResponse 상품_상세_조회_요청(final Long productId) { return given() - .log().all() .when() .get("/api/products/{product_id}", productId) - .then().log().all() + .then() .extract(); } diff --git a/src/test/java/com/funeat/acceptance/review/ReviewSteps.java b/src/test/java/com/funeat/acceptance/review/ReviewSteps.java index 6d0d817a..670d6b22 100644 --- a/src/test/java/com/funeat/acceptance/review/ReviewSteps.java +++ b/src/test/java/com/funeat/acceptance/review/ReviewSteps.java @@ -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(); } @@ -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() @@ -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(); } @@ -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 리뷰_상세_조회_요청(final Long reviewId) { return given() .when() - .log().all() .get("/api/reviews/{reviewId}", reviewId) .then() - .log().all() .extract(); } }