From 5735c264e2f556f2c0037b425e9423f693cbc83a Mon Sep 17 00:00:00 2001 From: ChaHyeonMin Date: Fri, 23 Feb 2024 15:47:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20OAuth=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../dku/council/domain/oauth/service/OauthServiceTest.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index f95987a2..f2a4caaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ HELP.md .gradle +.gradle/ build/ !gradle/wrapper/gradle-wrapper.jar !**/src/main/**/build/ diff --git a/src/test/java/com/dku/council/domain/oauth/service/OauthServiceTest.java b/src/test/java/com/dku/council/domain/oauth/service/OauthServiceTest.java index bc89ad21..ee49a02f 100644 --- a/src/test/java/com/dku/council/domain/oauth/service/OauthServiceTest.java +++ b/src/test/java/com/dku/council/domain/oauth/service/OauthServiceTest.java @@ -3,10 +3,12 @@ import com.dku.council.domain.oauth.exception.InvalidOauthResponseTypeException; import com.dku.council.domain.oauth.exception.OauthClientNotFoundException; import com.dku.council.domain.oauth.model.dto.request.OauthRequest; +import com.dku.council.domain.oauth.repository.OauthClientRepository; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; +import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; @@ -17,6 +19,9 @@ class OauthServiceTest { @InjectMocks private OauthService oauthService; + @Mock + private OauthClientRepository oauthClientRepository; + @Test @DisplayName("responseType이 올바르지 않은 경우") void checkInvalidResponseType() {