Skip to content

Conversation

@tryterry77
Copy link

게시글 도메인 테스트 입니다.

  1. 다음 세가지 항목에 대해서 검사합니다.
  • title - 공백 or null 검사
  • content - 공백 or null 검사
  • disclosureType - null 검사
  1. 편의상 Preconditions 추가 했습니다. if절 가독성 문제에 따라 도입이 필요할 것 같습니다.

@tryterry77 tryterry77 self-assigned this Nov 13, 2025
Comment on lines +36 to +38
null,
null,
null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

공개/비공개 타입도 테스트 케이스에 넣으면 어떨까요
그리고 parentBoard 와 createdBy 는 이미 Service layer 에서 에러를 내고있다고 가정하신 걸까요?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 테스트는 공개/비공개 타입이 null이면 실패하는 테스트라서 null로 넣었습니다.

parentBoard와 createdBy를 null로 입력한건 의존관계에 있는 필드라서

일단 null로 두고 테스트 했습니다.. 어떻게 해야 할까요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 공개/비공개 타입 태스트였군요..
parentBoard, createdBy 내용은 post repo 테스트에 올려놨습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants