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() {