diff --git a/src/test/java/com/nexters/goalpanzi/infrastructure/aws/S3ClientTest.java b/src/test/java/com/nexters/goalpanzi/infrastructure/aws/S3ClientTest.java index 3ef066a9..cd4e5191 100644 --- a/src/test/java/com/nexters/goalpanzi/infrastructure/aws/S3ClientTest.java +++ b/src/test/java/com/nexters/goalpanzi/infrastructure/aws/S3ClientTest.java @@ -1,8 +1,10 @@ package com.nexters.goalpanzi.infrastructure.aws; +import com.nexters.goalpanzi.config.redis.RedisInitializer; 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.ContextConfiguration; import org.springframework.web.multipart.MultipartFile; import static com.nexters.goalpanzi.fixture.MissionFixture.IMAGE_FILE; @@ -12,6 +14,9 @@ import static org.mockito.Mockito.when; @SpringBootTest +@ContextConfiguration( + initializers = {RedisInitializer.class} +) class S3ClientTest { @MockBean