-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BE] feat: AppleOpenId 로직 리팩터링(#975) #976
Conversation
Test Results241 files 241 suites 28s ⏱️ Results for commit ecb8c2a. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
빈 스코프를 prototype
으로 사용해서, 락 경합이 분리되어 더욱 최적화가 되었네요!
AppleOpenIdPublicKeyLocatorTest
에 대해 리뷰 남겼으니, 확인 부탁합니다!
@DisplayNameGeneration(ReplaceUnderscores.class) | ||
@SuppressWarnings("NonAsciiCharacters") | ||
class AppleOpenIdPublicKeyLocatorTest extends ApplicationIntegrationTest { | ||
|
||
@Autowired | ||
AppleOpenIdPublicKeyLocator appleOpenIdPublicKeyLocator; | ||
|
||
@Autowired | ||
KakaoOpenIdPublicKeyLocator kakaoOpenIdPublicKeyLocator; | ||
|
||
@Test | ||
void 소셜별_Locator_들은_캐싱을_공유하지_않는다() { | ||
|
||
// given & when & then | ||
assertThat(appleOpenIdPublicKeyLocator) | ||
.usingRecursiveComparison() | ||
.comparingOnlyFields("cachedOpenIdKeyProvider") | ||
.isNotEqualTo(kakaoOpenIdPublicKeyLocator); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
비즈니스 로직의 검증이 아닌, 스프링 프레임워크의 동작에 대한 검증 테스트 같네요!
해당 테스트가 필요하다고 생각하신 이유가 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사실 필요없지만 prototype을 직접 사용한건 처음이라 한번 검증차에서 구현해본 것을 남겼습니다!!
검증 됬으니 지우겠습니다!
📌 관련 이슈
✨ PR 세부 내용
해당 PR 리뷰 적용하였습니다