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.
명세란?
소프트웨어 개발 프로세스의 시작인 요구사항을 분석하고, 정의하는 단계에서 작성되는 최종 산출물이다.
단위테스트에서 Given / When / Then란?
Given: 테스트를 준비하는 과정, 테스트에 필요한 변수를 준비하는 것이다.
When: 실제로 테스트를 실행해보는 단계이다.
Then: 마지막으로 테스트를 검증하는 단계이다.
테스트 코드를 작성하는 이유는?
동작, 데이터등이 내가 의도한대로 처리가 되는지 확인하기 위해서이다.
@SpringBootTest가 하는 역할은?
Spring Application의 통합 테스트를 제공하는 Annotation이다.
@test가 하는 역할은?
해당 메소드가 테스트에 사용된다는 것을 알려주는 Annotation이다.
mockito를 쓰는 이유는?
객체를 쉽게 만들고, 관리하고, 검증하는 방법을 제공해주기 때문이다.
asssertAll이 하는 역할은?
여러 검증 결과 중 실패한 검증이 있을 경우에도 모든 검증을 수행하도록 해준다.