Skip to content

Commit

Permalink
수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CHANEE-personal committed Mar 1, 2023
1 parent 46d1568 commit 1ab6fa4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ void getUser() {
User saved = userRepository.save(user);

// when
User findUser = userRepository.findById(saved.getUserId())
.orElseThrow(NoSuchElementException::new);
User findUser = userService.getUser(saved.getUserId());
// then
Field[] fields = User.class.getDeclaredFields();
for (Field field : fields) {
Expand Down Expand Up @@ -110,7 +109,7 @@ void join() {
.phoneNumber("010-1234-5678")
.role(Role.USER)
.build();
User saved = userRepository.save(user);
User saved = userService.join(user);

// then
User findUser = userRepository.findById(saved.getUserId())
Expand Down

0 comments on commit 1ab6fa4

Please sign in to comment.