Skip to content

Commit

Permalink
✏️️Chore: UserServiceTest 오류 수정 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
win-luck committed Oct 10, 2023
1 parent c30ae9a commit 0539986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class UserService {
// 회원정보 저장
@Transactional
public Long saveUser(CreateUserDto createUserDto) {
BaseNutrition baseNutrition = BaseNutrition.createNutrition(0, 0, 0, 0); // 로직 확정 전에는 임시 코드로 대체
BaseNutrition baseNutrition = BaseNutrition.createNutrition(2000, 300, 80, 80);
// BaseNutrition baseNutrition = BaseNutrition.createNutrition(createUserDto.getGender(), createUserDto.getAge(), createUserDto.getHeight(), createUserDto.getWeight());
User user = User.createUser(createUserDto.getName(), createUserDto.getKeyCode(), createUserDto.getHeight(), createUserDto.getWeight(), createUserDto.getGender(), createUserDto.getAge(), baseNutrition);
return userRepository.save(user).getId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void getUserNutrition() { // 임시 코드 사용, 추후 로직 개편 시 테
ResponseUserNutritionDto responseUserNutritionDto = userService.getUserNutrition(userId);

// then
assertEquals(0, responseUserNutritionDto.getCalorie());
assertEquals(2000, responseUserNutritionDto.getCalorie());
}

@Test
Expand Down

0 comments on commit 0539986

Please sign in to comment.