-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor | CAKK-95 | 의존성 관리 방식 관련 리팩토링 #226
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## develop #226 +/- ##
==========================================
Coverage 90.19% 90.19%
Complexity 235 235
==========================================
Files 59 59
Lines 612 612
Branches 17 17
==========================================
Hits 552 552
Misses 51 51
Partials 9 9 Continue to review full report in Codecov by Sentry.
|
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.
�Gradle Catalog 설명해주시면 감사합니다!
@@ -49,7 +49,7 @@ class AppleAuthProviderTest : MockitoTest() { | |||
val oidcPublicKeyList = fixtureMonkey.giveMeBuilder(OidcPublicKeyList::class.java) | |||
.set("keys", Arbitraries.of(oidcPublicKeyFixture).list().ofMinSize(1).ofMaxSize(10)) | |||
.sample() | |||
val publicKey = fixtureMonkey.giveMeOne(PublicKey::class.java) | |||
val publicKey = mock(PublicKey::class.java) |
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.
이거 mock Fixture 라이브러리 메서드인가요?
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.
네, mockito 메서드입니다.
public class MockitoCore {
. . .
public <T> T mock(Class<T> typeToMock, MockSettings settings) {
if (!(settings instanceof MockSettingsImpl)) {
throw new IllegalArgumentException(
"Unexpected implementation of '"
+ settings.getClass().getCanonicalName()
+ "'\n"
+ "At the moment, you cannot provide your own implementations of that class.");
}
MockSettingsImpl impl = (MockSettingsImpl) settings;
MockCreationSettings<T> creationSettings = impl.build(typeToMock);
checkDoNotMockAnnotation(creationSettings.getTypeToMock(), creationSettings);
T mock = createMock(creationSettings);
mockingProgress().mockingStarted(mock, creationSettings);
return mock;
}
. . .
}
"org.springframework.boot" -> useVersion(springBootVersion) | ||
"io.spring.dependency-management" -> useVersion(springDependencyManagementVersion) | ||
} | ||
repositories { |
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.
dependencyResolutionManagement 역할이 뭔가요?
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.
블로그에 포스팅 했는데, 참고해주세요 ~~
CAKK-95
버전 관리를 편하게 하기 위해 의존성 관리 방식을 리팩토링 했습니다.
생략