Skip to content

test: 문서 조회 테스트 추가#136

Merged
Starlight258 merged 2 commits intoCrew-Wiki:developfrom
Starlight258:test/135
Jan 13, 2026
Merged

test: 문서 조회 테스트 추가#136
Starlight258 merged 2 commits intoCrew-Wiki:developfrom
Starlight258:test/135

Conversation

@Starlight258
Copy link
Collaborator

  • 조직 문서와 크루 문서 모두가 조회되는지 확인한다.

- 조직 문서와 크루 문서 모두가 조회되는지 확인한다.
Copy link
Collaborator

@2Jin1031 2Jin1031 left a comment

Choose a reason for hiding this comment

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

고생하셨어요~ 밍트!
테스트 코드 깔끔하네요 🤩

void findAll_success_returnsBothCrewAndOrganizationDocuments() {
// given
CrewDocument crewDocument = documentRepository.save(
DocumentFixture.createCrewDocument("crew문서", "content1", "writer1", 10L, UUID.randomUUID()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

p5) 메서드마다 save 로직의 반환값 처리 방식이 다르게 작성되어 보여요! 저장 결과를 이후 로직에서 사용하지 않는 경우에는 반환값을 변수로 받지 않도록 통일하여 일관성을 가져가는 것도 유지보수 측면에서 이점이 있다고 생각해서요 이 메서드의 given 절에서 사용하지 않는 반환값을 변수로 받는 부분을 제거하는 방향은 어떻게 생각하는 지 궁금합니다~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

사용하지 않는 변수는 제거하는 것이 좋겠네요 👍 감사합니다!

@CheChe903 CheChe903 changed the base branch from main to develop January 12, 2026 08:06
@Starlight258 Starlight258 merged commit fabdf02 into Crew-Wiki:develop Jan 13, 2026
1 check passed
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.

2 participants