-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
32 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
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 |
---|---|---|
|
@@ -24,16 +24,15 @@ | |
import toy.bookchat.bookchat.db_module.device.repository.DeviceRepository; | ||
import toy.bookchat.bookchat.db_module.user.UserEntity; | ||
import toy.bookchat.bookchat.db_module.user.repository.UserRepository; | ||
import toy.bookchat.bookchat.support.Status; | ||
import toy.bookchat.bookchat.infrastructure.s3.StorageService; | ||
import toy.bookchat.bookchat.domain.user.UserProfile; | ||
import toy.bookchat.bookchat.domain.user.api.v1.request.ChangeUserNicknameRequest; | ||
import toy.bookchat.bookchat.domain.user.api.v1.request.UserSignInRequest; | ||
import toy.bookchat.bookchat.domain.user.api.v1.request.UserSignUpRequest; | ||
import toy.bookchat.bookchat.domain.user.api.v1.response.MemberProfileResponse; | ||
import toy.bookchat.bookchat.exception.badrequest.user.UserAlreadySignUpException; | ||
import toy.bookchat.bookchat.exception.conflict.device.DeviceAlreadyRegisteredException; | ||
import toy.bookchat.bookchat.infrastructure.fcm.service.PushService; | ||
import toy.bookchat.bookchat.infrastructure.s3.StorageService; | ||
import toy.bookchat.bookchat.support.Status; | ||
|
||
@ExtendWith(MockitoExtension.class) | ||
class UserServiceTest { | ||
|
@@ -230,18 +229,10 @@ void deleteDevice() throws Exception { | |
} | ||
|
||
@Test | ||
void 사용자_프로필_조회_성공() throws Exception { | ||
UserEntity userEntity = UserEntity.builder() | ||
.id(1L) | ||
.nickname("user1") | ||
.email("[email protected]") | ||
.profileImageUrl("profile-image-url") | ||
.defaultProfileImageType(2) | ||
.build(); | ||
given(userReader.readUserEntity(anyLong())).willReturn(userEntity); | ||
|
||
UserProfile userProfile = userService.findUser(1L); | ||
@DisplayName("사용자 프로필 조회 성공") | ||
void findUser() throws Exception { | ||
userService.findUser(1L); | ||
|
||
verify(userReader).readUserEntity(anyLong()); | ||
verify(userReader).readUser(any()); | ||
} | ||
} |