room 테스트 결합과 dead code를 정리한다#118
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 배경
room 모듈의 테스트 중 일부가 구현 세부, thin delegation, 과거 마이그레이션 경로, 응답의 부재 필드 같은 낮은 가치의 세부사항을 고정하고 있어 리팩토링 내성을 떨어뜨리고 있었습니다. 테스트가 설계 규칙, 도메인 규칙, 외부 계약, 실제 회귀 위험을 보호하도록 범위를 줄이고, 필요한 경우 production 코드의 경계도 함께 정리했습니다.
주요 변경사항
Room.join이 참가한RoomTeamLeader를 반환하도록 바꿔JoinRoom이 저장된 aggregate를 다시 탐색하지 않도록 정리했습니다.CreateRoom/JoinRoom의 세션 반환 경로를 단순화하고, 구현 탐색을 고정하던JoinRoomTest를 제거했습니다.SettleAuction,JpaAuctionScheduleReader대신AuctionSettlementRunner,AuctionScheduleReader계약에 의존하도록 정리했습니다.SettleAuction상속 fake를 제거하고, 스케줄링 정책만 검증하도록 줄였습니다.JpaAuctionScheduleReader의 pagination 동작은 별도 낮은 레이어 테스트로 이동했습니다.검증
./gradlew check./gradlew integrationTestgit diff --check리뷰 포인트
AuctionSettlementRunner,AuctionScheduleReader가 스케줄러의 내부 경계를 적절히 드러내는지 확인해 주세요.