We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@mock
@injectMocks
@Mock
일반적으로 테스트 코드를 작성할 때 Given - When - Then (준비, 실행, 검증) 패턴을 활용하면 더 쉽게 코드를 작성할 수 있습니다.
주석을 통해 미리 나눠놓고 짜자
The text was updated successfully, but these errors were encountered:
감사합니다!
Sorry, something went wrong.
어렵다,,!
No branches or pull requests
요약
준비
@mock
으로, XXXService을@injectMocks
으로 하면 된다.@Mock
: Mock객체(가짜객체) 반환해주는 어노테이션@injectMocks
:@Mock
으로 생성된 가짜 객체를 이 어노테이션이 달린 애한테 주입시켜준다.Given, When, Then
일반적으로 테스트 코드를 작성할 때 Given - When - Then (준비, 실행, 검증) 패턴을 활용하면 더 쉽게 코드를 작성할 수 있습니다.
Layer별 Test코드 작성
The text was updated successfully, but these errors were encountered: