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 가하는역할은?
Test 환경을 구축한다.
@test 가 하는 역할은?
독립적인 테스트를 수행하는 역할이다.
mockito를 쓰는 이유는?
가짜 객체를 생성하고 그것을 테스트해 검증할 수 있게 해준다.
assertAll 가 하는 역할은?
여러 case를 한번에 검증한다.