KotlinBindableRuntimeHintsRegistrarTests Class — spring-boot Architecture
Architecture documentation for the KotlinBindableRuntimeHintsRegistrarTests class in KotlinBindableRuntimeHintsRegistrarTests.kt from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/kotlin/org/springframework/boot/context/properties/bind/KotlinBindableRuntimeHintsRegistrarTests.kt lines 30–44
class KotlinBindableRuntimeHintsRegistrarTests {
@Test
fun `registerHints for data class with default value should allow declared constructors to be invoked`() {
val runtimeHints = RuntimeHints()
val register = BindableRuntimeHintsRegistrar.forTypes(PropertyWithDefaultValue::class.java)
register.registerHints(runtimeHints)
assertThat(runtimeHints.reflection().typeHints()).hasSize(1)
assertThat(runtimeHints.reflection().typeHints()).allSatisfy { hint ->
assertThat(hint.memberCategories).containsExactly(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
}
}
data class PropertyWithDefaultValue(var a: String = "alpha")
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free