-
Notifications
You must be signed in to change notification settings - Fork 6
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: 게시글 쓰기 단위 테스트 코드 구현 #263
Conversation
1648f8e
to
118a094
Compare
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.
의견 하나 남겼습니다!
@@ -18,7 +18,7 @@ public class BoardService { | |||
|
|||
@Transactional(readOnly = true) | |||
public GetBoardResDto findBoards() { | |||
List<Board> boards = boardRepository.findAll(); | |||
List<Board> boards = boardRepository.findAllByUsedBoardTrue(); |
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.
제가 생각했을때는 True없이
boardRepository.findAllByUsedBoard();
메서드 네이밍이 여기까지만 와도 이해가 잘 되는 것 같아요
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.
좋은 의견 감사합니다.
메서드 네이밍 규칙에 True를 사용한 이유는 UsedBoard = True라는 조건을 걸어주기 위해서입니다!
Issues
구분
주요 변경점
스크린샷
기타