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.
작업 대상
출석 체크 단위 테스트, 통합 테스트
📄 작업 내용
출석 체크 단위 테스트, 통합 테스트 작성
🙋🏻 주의 사항
테스트 구성
@SpringBootTest
를 통해 service layer + repository layer 형태로 통합 테스트를 구성하고, service layer 단위테스트를 별도로 작성하지 않는 경우 존재
@SpringBootTest
와MockMvc
를 활용하여 실제 사용자 요청 처리 상황을 연출하는 형식으로 작성사용자 최종 접속 일시 갱신 확인
📎 관련 이슈
controller layer, 통합 테스트에서 인터셉터를 일단 배제하고 인가에 필요한 데이터(
userId
)를 직접 request attribute로 설정하는 형식으로 작성하였는데, 이것이 적절한 지 적절하지 않다면 어떤 식으로 구성하는 지 의견 주시면 감사하겠습니다.레퍼런스