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.
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
test: 팔로우 소식 도메인 테스트 코드 작성 #460
test: 팔로우 소식 도메인 테스트 코드 작성 #460
Changes from 7 commits
5d73986
0fab0b8
b758681
842bb62
8459407
fa5009d
9c3193c
ee42ec0
ed8d76a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
요기는 왜
@Override
가 없나요??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.
FollowingMemoryLogRepository의 cursorIdLt() 메서드는 FollowingMemoryLogPersistencePort에는 없는 메서드라
@Override
를 할 수 없습니다. 또한 FollowingMemoryLogRepository의 cursorIdLt() 메서드 의 반환 타입은 BooleanExpression로 queryDSL에 종속된 클래스이므로 domain-module에 속한 persistencePort에서 사용할 수 없어 FollowingMemoryLogPersistencePort 인터페이스에 선언하지 않았습니다.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.
네 테스트 코드에서만 사용하는 코드입니다.
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.
저희 친구관계가 생기기 전의 log도 저장이 되었나요 !
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.
아니요. 해당 메서드는
팔로잉_소식_cursorId_없이_조회()
에서 더미 데이터를 만들기 위해 만들어진 메서드로 Member, Memory를 만든 후, 팔로우 관계를 맺은 상태에서 FollowingMemoryLog를 만드는 로직입니다. 해당 과정이 필요한 이유는 팔로잉 소식 조회 시 Friend 를 조인하여 조회하기 때문입니다.