-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FEAT] 테스트 Redis 설정파일 에러 해결
- Loading branch information
Showing
10 changed files
with
93 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ build/ | |
!**/src/test/**/build/ | ||
|
||
application-local.yml | ||
application.yml | ||
|
||
**.adoc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 2 additions & 27 deletions
29
src/test/java/sopt/org/motivooServer/MotivooServerApplicationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,13 @@ | ||
package sopt.org.motivooServer; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.boot.test.mock.mockito.MockBean; | ||
import org.springframework.test.context.ActiveProfiles; | ||
|
||
import sopt.org.motivooServer.domain.auth.config.CustomJwtAuthenticationEntryPoint; | ||
import sopt.org.motivooServer.domain.auth.config.JwtTokenProvider; | ||
import sopt.org.motivooServer.domain.auth.config.RedisConfig; | ||
import sopt.org.motivooServer.domain.auth.repository.TokenRedisRepository; | ||
import sopt.org.motivooServer.global.util.slack.SlackUtil; | ||
|
||
@SpringBootTest | ||
@ActiveProfiles({"local", "deploy"}) | ||
//TODO EC2로 application-test.yml도 보내줘야 함! | ||
// @SpringBootTest | ||
class MotivooServerApplicationTests { | ||
|
||
@MockBean | ||
private SlackUtil slackUtil; | ||
|
||
@MockBean | ||
private JwtTokenProvider jwtTokenProvider; | ||
|
||
@MockBean | ||
private CustomJwtAuthenticationEntryPoint customJwtAuthenticationEntryPoint; | ||
|
||
@MockBean | ||
private RedisConfig redisConfig; | ||
|
||
@MockBean | ||
private TokenRedisRepository tokenRedisRepository; | ||
|
||
|
||
@Test | ||
void contextLoads() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/java/sopt/org/motivooServer/util/ApiDocumentUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package sopt.org.motivooServer.util; | ||
|
||
import static org.springframework.restdocs.operation.preprocess.Preprocessors.*; | ||
|
||
import org.springframework.restdocs.operation.preprocess.OperationRequestPreprocessor; | ||
import org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor; | ||
|
||
public interface ApiDocumentUtil { | ||
|
||
static OperationRequestPreprocessor getDocumentRequest() { | ||
return preprocessRequest(prettyPrint()); | ||
} | ||
|
||
static OperationResponsePreprocessor getDocumentResponse() { | ||
return preprocessResponse(prettyPrint()); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.