diff --git a/src/test/java/com/ajou/hertz/unit/domain/user/service/UserProfileImageCommandServiceTest.java b/src/test/java/com/ajou/hertz/unit/domain/user/service/UserProfileImageCommandServiceTest.java index b7170d8..5ebf454 100644 --- a/src/test/java/com/ajou/hertz/unit/domain/user/service/UserProfileImageCommandServiceTest.java +++ b/src/test/java/com/ajou/hertz/unit/domain/user/service/UserProfileImageCommandServiceTest.java @@ -13,12 +13,10 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.mock.web.MockMultipartFile; -import org.springframework.test.context.event.annotation.BeforeTestMethod; import org.springframework.web.multipart.MultipartFile; import com.ajou.hertz.common.file.dto.FileDto; import com.ajou.hertz.common.file.service.FileService; -import com.ajou.hertz.common.properties.HertzProperties; import com.ajou.hertz.domain.user.constant.Gender; import com.ajou.hertz.domain.user.constant.RoleType; import com.ajou.hertz.domain.user.entity.User; @@ -36,17 +34,9 @@ public class UserProfileImageCommandServiceTest { @Mock private UserProfileImageRepository userProfileImageRepository; - @Mock - private HertzProperties hertzProperties; - @Mock private FileService fileService; - @BeforeTestMethod - public void setUp() { - given(hertzProperties.userDefaultProfileImageUrl()).willReturn("https://user-default-profile-image"); - } - @Test void 기본_프로필_이미지인_경우_유저의_프로필_이미지를_최초로_업데이트한다() throws Exception { // given