-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/69 기관 프로필 조회 컨트롤러 구현 #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현 - center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄 - 테스트 코드 작성및 검증완료
m-a-king
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다. 컨트롤러 테스트 이렇게 따라가보게씁니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋네용!
| .andDo(print()) | ||
| .andExpect(status().isBadRequest()) | ||
| .andExpect(jsonPath("$.status").value("400")) | ||
| .andExpect(jsonPath("$.detail").value("존재하지 않는 기관 ID 입니다.")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
존재하지 않는 기관입니다 로 바꾸는 것은 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다 반영하겠습니다
ayoung-dev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트 부분 좋아보입니다! 👍🏻
leebs0521
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다.
| @GeneratedValue(strategy = GenerationType.UUID) | ||
| @Column(nullable = false, length = 16) | ||
| @Column(nullable = false, columnDefinition = "BINARY(16)") | ||
| private UUID id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 바꾸신 이유가 혹시 오류 떄문인가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BINARY(16)으로 id값을 압축했다는걸 명시적으로 보여주고 싶었어요
- 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현 - center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄 - 테스트 코드 작성및 검증완료
- 예외 메세지 변경 - 컨트롤러와 API 엔드포인트에 스웨거 어노테이션 추가 - 응답 DTO에 스웨거 스키마 추
…ller' into feature/69-add-center-api-controller # Conflicts: # src/main/java/com/somemore/center/controller/CenterQueryApiController.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌드에 실패했습니다.
- CenterQueryApiControllerTest 예외 테스트의 예외 메세지를 수정
|
* feat: 기관 프로필 조회 컨트롤러 구현 - 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현 - center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄 - 테스트 코드 작성및 검증완료 * feat: 기관 프로필 조회 컨트롤러 구현 - 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현 - center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄 - 테스트 코드 작성및 검증완료 * chore: 코드 리뷰 사항 반영 - 예외 메세지 변경 - 컨트롤러와 API 엔드포인트에 스웨거 어노테이션 추가 - 응답 DTO에 스웨거 스키마 추 * fix: 테스트 코드 수정 - CenterQueryApiControllerTest 예외 테스트의 예외 메세지를 수정



resolved : #69
📌 과제 설명
기관 프로필 조회의 컨트롤러 구현과 테스트 코드 입니다.
👩💻 요구 사항과 구현 내용
✅ PR 포인트 & 궁금한 점
presentation 레이어 테스트를 작성하는데 많이 어색한 느낌이었습니다.
테스트 작성이 잘 되었는지 여쭤보고 싶어요