Skip to content

Commit

Permalink
refactor: 승인되지 않음 -> 인증되지 않음으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wugawuga committed Aug 12, 2023
1 parent 23884d7 commit c16e323
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CommonSteps {
public static final HttpStatus 정상_생성 = HttpStatus.CREATED;
public static final HttpStatus 정상_처리_NO_CONTENT = HttpStatus.NO_CONTENT;
public static final HttpStatus 리다이렉션_영구_이동 = HttpStatus.FOUND;
public static final HttpStatus 승인되지_않음 = HttpStatus.UNAUTHORIZED;
public static final HttpStatus 인증되지_않음 = HttpStatus.UNAUTHORIZED;
public static final HttpStatus 잘못된_요청 = HttpStatus.BAD_REQUEST;
public static final HttpStatus 찾을수_없음 = HttpStatus.NOT_FOUND;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static com.funeat.acceptance.auth.LoginSteps.로그인_쿠키를_얻는다;
import static com.funeat.acceptance.common.CommonSteps.STATUS_CODE_검증한다;
import static com.funeat.acceptance.common.CommonSteps.승인되지_않음;
import static com.funeat.acceptance.common.CommonSteps.인증되지_않음;
import static com.funeat.acceptance.common.CommonSteps.잘못된_요청;
import static com.funeat.acceptance.common.CommonSteps.정상_처리;
import static com.funeat.acceptance.member.MemberSteps.사용자_정보_수정_요청;
Expand Down Expand Up @@ -55,7 +55,7 @@ class getMemberProfile_실패_테스트 {
final var response = 사용자_정보_조회_요청(null);

// then
STATUS_CODE_검증한다(response, 승인되지_않음);
STATUS_CODE_검증한다(response, 인증되지_않음);
사용자_승인되지_않음을_검증하다(response);
}
}
Expand Down Expand Up @@ -92,7 +92,7 @@ class putMemberProfile_실패_테스트 {
final var response = 사용자_정보_수정_요청(null, request);

// then
STATUS_CODE_검증한다(response, 승인되지_않음);
STATUS_CODE_검증한다(response, 인증되지_않음);
사용자_승인되지_않음을_검증하다(response);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static com.funeat.acceptance.auth.LoginSteps.로그인_쿠키를_얻는다;
import static com.funeat.acceptance.common.CommonSteps.STATUS_CODE_검증한다;
import static com.funeat.acceptance.common.CommonSteps.승인되지_않음;
import static com.funeat.acceptance.common.CommonSteps.인증되지_않음;
import static com.funeat.acceptance.common.CommonSteps.잘못된_요청;
import static com.funeat.acceptance.common.CommonSteps.정상_생성;
import static com.funeat.acceptance.common.CommonSteps.정상_처리;
Expand Down Expand Up @@ -95,7 +95,7 @@ class writeRecipe_실패_테스트 {
final var expectedCode = LOGIN_MEMBER_NOT_FOUND.getCode();
final var expectedMessage = LOGIN_MEMBER_NOT_FOUND.getMessage();

STATUS_CODE_검증한다(response, 승인되지_않음);
STATUS_CODE_검증한다(response, 인증되지_않음);
RESPONSE_CODE_MESSAGE_검증한다(response, expectedCode, expectedMessage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static com.funeat.acceptance.auth.LoginSteps.로그인_쿠키를_얻는다;
import static com.funeat.acceptance.common.CommonSteps.STATUS_CODE_검증한다;
import static com.funeat.acceptance.common.CommonSteps.승인되지_않음;
import static com.funeat.acceptance.common.CommonSteps.인증되지_않음;
import static com.funeat.acceptance.common.CommonSteps.잘못된_요청;
import static com.funeat.acceptance.common.CommonSteps.정상_생성;
import static com.funeat.acceptance.common.CommonSteps.정상_처리;
Expand Down Expand Up @@ -120,7 +120,7 @@ class writeReview_실패_테스트 {
final var expectedCode = LOGIN_MEMBER_NOT_FOUND.getCode();
final var expectedMessage = LOGIN_MEMBER_NOT_FOUND.getMessage();

STATUS_CODE_검증한다(response, 승인되지_않음);
STATUS_CODE_검증한다(response, 인증되지_않음);
RESPONSE_CODE_MESSAGE_검증한다(response, expectedCode, expectedMessage);
}

Expand Down Expand Up @@ -410,7 +410,7 @@ class toggleLikeReview_실패_테스트 {
final var expectedCode = LOGIN_MEMBER_NOT_FOUND.getCode();
final var expectedMessage = LOGIN_MEMBER_NOT_FOUND.getMessage();

STATUS_CODE_검증한다(response, 승인되지_않음);
STATUS_CODE_검증한다(response, 인증되지_않음);
RESPONSE_CODE_MESSAGE_검증한다(response, expectedCode, expectedMessage);
}

Expand Down Expand Up @@ -740,7 +740,7 @@ class getSortingReviews_실패_테스트 {
final var expectedCode = LOGIN_MEMBER_NOT_FOUND.getCode();
final var expectedMessage = LOGIN_MEMBER_NOT_FOUND.getMessage();

STATUS_CODE_검증한다(response, 승인되지_않음);
STATUS_CODE_검증한다(response, 인증되지_않음);
RESPONSE_CODE_MESSAGE_검증한다(response, expectedCode, expectedMessage);
}

Expand Down

0 comments on commit c16e323

Please sign in to comment.