Skip to content
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

[Feat] #274 - LogService 테스트 코드 작성 #275

Merged
merged 7 commits into from
May 29, 2024
Merged

Conversation

0lynny
Copy link
Member

@0lynny 0lynny commented May 28, 2024

🚀PullRequest🚀

📟 관련 이슈

💻 작업 내용

  • LogService 내의 메서드에 대한 테스트 코드를 작성하였습니다.
스크린샷 2024-05-28 오후 5 08 33
  • 진척 상황 입력 후 로그가 생성되는 경우 isKeyResult에 따른 반환값이 다른데, 하나의 메서드에서 처리할 수 있도록 @ParameterizedTest를 통해 구현하였습니다. 해당 테스트 결과는 다음과 같습니다.
스크린샷 2024-05-28 오후 5 05 29

📝 리뷰 노트

  • 이번에도 Stubbing을 하는 부분에서 시행착오가 있었습니다 .. 하하
  • 추가적으로 필요한 테스트 코드가 있다면 알려주세요 !

🔗참고

https://velog.io/@ohzzi/junit5-parameterizedtest

Copy link
Member

@its-sky its-sky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~ 다음에는 stubbing에 대해서 제대로 수행할 수 있도록 빌겠습니다..

@its-sky
Copy link
Member

its-sky commented May 28, 2024

수고하셨습니다~ 다음에는 stubbing에 대해서 제대로 수행할 수 있도록 빌겠습니다..

아 그리고 @Injectmocks를 Unit Test 대상에 대해서 하지 않은 그런 건도 잘 정리하시길 바랍니다..

@0lynny 0lynny merged commit ade991d into develop May 29, 2024
1 check passed
@its-sky its-sky deleted the feature/#274 branch May 29, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] LogService 테스트코드 작성
2 participants