Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import hanium.modic.backend.domain.user.entity.UserEntity;

public record SearchUsersResponse(
Long id,
String name,
Long userId,
String userName,
boolean hasUserImage,
String userImageUrl
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@JsonInclude(NON_NULL)
public record UserInfoResponse(
Long id,
Long userId,
String userEmail,
String userName,
boolean hasUserImage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void getUserInfoTest() {
UserInfoResponse response = userService.getUserInfo(user);

// then
assertThat(response.id()).isEqualTo(userId);
assertThat(response.userId()).isEqualTo(userId);
assertThat(response.userEmail()).isEqualTo(user.getEmail());
assertThat(response.userName()).isEqualTo(user.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void getUserInfoApiTest() throws Exception {
.header("Authorization", "Bearer " + token.accessToken())
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpectAll(jsonPath("$.data.id").value(user.getId()),
.andExpectAll(jsonPath("$.data.userId").value(user.getId()),
jsonPath("$.data.userEmail").value(user.getEmail()),
jsonPath("$.data.userName").value(user.getName()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void getUserInfo_success() throws Exception {
// when & then
mockMvc.perform(get("/api/users/me"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.data.id").value(mockUser.getId()))
.andExpect(jsonPath("$.data.userId").value(mockUser.getId()))
.andExpect(jsonPath("$.data.userEmail").value(mockUser.getEmail()));

SecurityContextHolder.clearContext();
Expand Down