File tree 4 files changed +9
-10
lines changed
main/java/com/ajou/hertz/domain/user
test/java/com/ajou/hertz/unit/domain/user
4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,7 @@ public UserResponse updateProfileImageUrlV1(
136
136
UserDto userUpdated = userCommandService .updateProfileImageUrl (userPrincipal .getUserId (), profileImage );
137
137
return UserResponse .from (userUpdated );
138
138
}
139
- }
140
-
139
+
141
140
@ Operation (
142
141
summary = "연락 수단 변경" ,
143
142
description = "연락 수단을 변경합니다." ,
Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ public static User create(
101
101
);
102
102
}
103
103
104
-
105
104
public void changeProfileImageUrl (String profileImageUrl ) {
106
105
this .profileImageUrl = profileImageUrl ;
107
106
}
108
107
109
108
public UserProfileImage getProfileImage () {
110
109
return UserProfileImage .of (profileImageUrl );
110
+ }
111
111
112
112
public void changeContactLink (String contactLink ) {
113
113
this .contactLink = contactLink ;
Original file line number Diff line number Diff line change @@ -241,10 +241,10 @@ public void securitySetUp() throws Exception {
241
241
.andExpect (status ().isOk ())
242
242
.andExpect (jsonPath ("$.profileImageUrl" ).value (expectedResult .getProfileImageUrl ()));
243
243
then (userCommandService ).should ().updateProfileImageUrl (userId , profileImage );
244
- verifyEveryMocksShouldHaveNoMoreInteractions ();
244
+ verifyEveryMocksShouldHaveNoMoreInteractions ();
245
245
}
246
-
247
-
246
+
247
+ @ Test
248
248
void 주어진_연락수단을_새로운_연락수단으로_변경한다 () throws Exception {
249
249
// given
250
250
long userId = 1L ;
Original file line number Diff line number Diff line change @@ -218,14 +218,14 @@ static Stream<Arguments> testDataForCreateNewUserWithKakao() throws Exception {
218
218
219
219
// when
220
220
Throwable t = catchThrowable (() -> sut .updateProfileImageUrl (userId , newProfileImage ));
221
-
222
- // then
221
+
222
+ // then
223
223
then (userQueryService ).should ().getById (userId );
224
224
verifyEveryMocksShouldHaveNoMoreInteractions ();
225
225
assertThat (t ).isInstanceOf (UserNotFoundByIdException .class );
226
226
}
227
-
228
-
227
+
228
+ @ Test
229
229
void 주어진_유저_ID와_연락_수단으로_연락_수단을_변경한다 () throws Exception {
230
230
// given
231
231
Long userId = 1L ;
You can’t perform that action at this time.
0 commit comments