From 051e635a16d60023c2c394bc4375e963b4428db7 Mon Sep 17 00:00:00 2001 From: younghoonkwon Date: Wed, 27 Oct 2021 22:14:42 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EA=B8=80=EB=A1=9C=EB=B2=8C?= =?UTF-8?q?=EA=B0=9D=EC=B2=B4=EB=93=A4=20=EC=9D=B8=EC=8A=A4=ED=84=B4?= =?UTF-8?q?=EC=8A=A4=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cvi/parser/AuthorizationManagerTest.java | 8 ++------ .../test/java/com/cvi/parser/KakaoAuthorizationTest.java | 2 +- .../test/java/com/cvi/parser/NaverAuthorizationTest.java | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/AuthorizationManagerTest.java b/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/AuthorizationManagerTest.java index 67a57600..c79f277d 100644 --- a/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/AuthorizationManagerTest.java +++ b/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/AuthorizationManagerTest.java @@ -34,12 +34,11 @@ class AuthorizationManagerTest { private final ObjectMapper objectMapper = new ObjectMapper(); private final RestTemplate restTemplate = new RestTemplate(); - private final NaverAuthorization naverAuthorization = spy(new NaverAuthorization(restTemplate, objectMapper)); - private final KakaoAuthorization kakaoAuthorization = spy(new KakaoAuthorization(restTemplate, objectMapper)); + private final Authorization naverAuthorization = spy(new NaverAuthorization(restTemplate, objectMapper)); + private final Authorization kakaoAuthorization = spy(new KakaoAuthorization(restTemplate, objectMapper)); private UserInformation naverUserInfo; - private UserInformation kakaoUserInfo; @BeforeEach void setUp() throws JsonProcessingException { @@ -48,9 +47,6 @@ void setUp() throws JsonProcessingException { NaverProfile naverProfile = objectMapper.readValue(NAVER_PROFILE_RESPONSE, NaverProfile.class); naverUserInfo = UserInformation.of(naverProfile); - - KakaoProfile kakaoProfile = objectMapper.readValue(KAKAO_PROFILE_RESPONSE, KakaoProfile.class); - kakaoUserInfo = UserInformation.of(kakaoProfile); } @DisplayName("Naver Authorization 매니저 유저 정보 요청 - 성공") diff --git a/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/KakaoAuthorizationTest.java b/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/KakaoAuthorizationTest.java index 325d23c6..c345d202 100644 --- a/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/KakaoAuthorizationTest.java +++ b/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/KakaoAuthorizationTest.java @@ -39,7 +39,7 @@ class KakaoAuthorizationTest { private final RestTemplate restTemplate = spy(RestTemplate.class); private final ObjectMapper objectMapper = new ObjectMapper(); - private final KakaoAuthorization kakaoAuthorization = new KakaoAuthorization(restTemplate, objectMapper); + private final Authorization kakaoAuthorization = new KakaoAuthorization(restTemplate, objectMapper); private HttpEntity> kakaoTokenRequest; private ResponseEntity tokenResponse; private ResponseEntity profileResponse; diff --git a/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/NaverAuthorizationTest.java b/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/NaverAuthorizationTest.java index f3950ba0..0920f8ca 100644 --- a/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/NaverAuthorizationTest.java +++ b/backend/domain-cvi-oauth-service/src/test/java/com/cvi/parser/NaverAuthorizationTest.java @@ -40,7 +40,7 @@ class NaverAuthorizationTest { private final RestTemplate restTemplate = spy(RestTemplate.class); private final ObjectMapper objectMapper = new ObjectMapper(); - private final NaverAuthorization naverAuthorization = new NaverAuthorization(restTemplate, objectMapper); + private final Authorization naverAuthorization = new NaverAuthorization(restTemplate, objectMapper); private HttpEntity> naverTokenRequest; private ResponseEntity tokenResponse; private ResponseEntity profileResponse;