Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class KotlinConfigurationPropertiesTests {
}

@Test
fun `mutable data class properties can be imported`() {
this.context.register(MutableDataClassPropertiesImporter::class.java)
fun `mutable data class properties can be bound`() {
this.context.register(EnableMutableDataClassProperties::class.java)
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.context, "mutable.prop=alpha")
this.context.refresh()
assertThat(this.context.getBean(MutableDataClassProperties::class.java).prop).isEqualTo("alpha")
Expand Down Expand Up @@ -120,7 +120,7 @@ class KotlinConfigurationPropertiesTests {
@EnableConfigurationProperties
@Configuration(proxyBeanMethods = false)
@Import(MutableDataClassProperties::class)
class MutableDataClassPropertiesImporter
class EnableMutableDataClassProperties

@ConfigurationProperties(prefix = "mutable")
data class MutableDataClassProperties(
Expand Down