Skip to content

Commit

Permalink
fix: OAuth 테스트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gutanbug committed Feb 23, 2024
1 parent 7f554d8 commit 5735c26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
HELP.md
.gradle
.gradle/
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand All @@ -17,6 +19,9 @@ class OauthServiceTest {
@InjectMocks
private OauthService oauthService;

@Mock
private OauthClientRepository oauthClientRepository;

@Test
@DisplayName("responseType이 올바르지 않은 경우")
void checkInvalidResponseType() {
Expand Down

0 comments on commit 5735c26

Please sign in to comment.