Skip to content

Commit f94f803

Browse files
committed
test(oauth): 테스트 수정
- 구글에서 카카오로 변경
1 parent ae1799d commit f94f803

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/java/com/somemore/domains/volunteer/service/GenerateOAuthUrlServiceTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.somemore.domains.volunteer.service;
22

3+
import com.somemore.global.auth.oauth.domain.OAuthProvider;
34
import com.somemore.support.IntegrationTestSupport;
45
import org.junit.jupiter.api.Test;
56
import org.springframework.beans.factory.annotation.Autowired;
@@ -19,7 +20,7 @@ class GenerateOAuthUrlServiceTest extends IntegrationTestSupport {
1920
@Test
2021
void generateUrl_ShouldReturnCorrectUrl_ForNaver() {
2122
// Given
22-
String oAuthProvider = "naver";
23+
String oAuthProvider = OAuthProvider.NAVER.getProviderName();
2324

2425
// When
2526
String result = generateOAuthUrlService.generateUrl(oAuthProvider);
@@ -31,15 +32,15 @@ void generateUrl_ShouldReturnCorrectUrl_ForNaver() {
3132
}
3233

3334
@Test
34-
void generateUrl_ShouldReturnCorrectUrl_ForGoogle() {
35+
void generateUrl_ShouldReturnCorrectUrl_ForKakao() {
3536
// Given
36-
String oAuthProvider = "google";
37+
String oAuthProvider = OAuthProvider.KAKAO.getProviderName();
3738

3839
// When
3940
String result = generateOAuthUrlService.generateUrl(oAuthProvider);
4041

4142
// Then
42-
String expectedUrl = backendRootUrl + "/oauth2/authorization/google";
43+
String expectedUrl = backendRootUrl + "/oauth2/authorization/kakao";
4344

4445
assertThat(result).isEqualTo(expectedUrl);
4546
}

0 commit comments

Comments
 (0)