Kotlin3 [Spring] Mockito Inline Mock 경고 (경고 메시지)더보기Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3WARNING: A Java agent has been loaded dynamically (/path/to/byte-buddy-agent.jar)WARNING.. 2025. 2. 22. [Spring] > Failed to transform ~.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':gateway:compileKotlin'.> Could not resolve all files for configuration ':gateway:detachedConfiguration1'. > Failed to transform common-0.0.1-SNAPSHOT-plain.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed fo.. 2023. 12. 26. [Kotlin] 정적 팩토리 메소드 enum class IssueType { BUG, TASK; companion object { fun of (type: String) = valueOf(type.uppercase()) }}자바 느낌의 정적 팩토리 메소드 enum class IssueType { BUG, TASK; companion object { operator fun invoke(type: String) = valueOf(type.uppercase()) }}fun test() { IssueType("BUG")}코틀린에서 자체 지원하는 정적 팩토리 메소드 `.invoke`를 생략해도 위처럼 enum을 사용할 수 있다.// invoke 생략 가능IssueType.invoke.. 2023. 12. 26. 이전 1 다음