Skip to content

Commit d9ccf73

Browse files
committed
Polishing KotlinConfigurationPropertiesTests to use the same naming style
1 parent a4df3ce commit d9ccf73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/context/properties/KotlinConfigurationPropertiesTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class KotlinConfigurationPropertiesTests {
8080
}
8181

8282
@Test
83-
fun `mutable data class properties can be imported`() {
84-
this.context.register(MutableDataClassPropertiesImporter::class.java)
83+
fun `mutable data class properties can be bound`() {
84+
this.context.register(EnableMutableDataClassProperties::class.java)
8585
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.context, "mutable.prop=alpha")
8686
this.context.refresh()
8787
assertThat(this.context.getBean(MutableDataClassProperties::class.java).prop).isEqualTo("alpha")
@@ -120,7 +120,7 @@ class KotlinConfigurationPropertiesTests {
120120
@EnableConfigurationProperties
121121
@Configuration(proxyBeanMethods = false)
122122
@Import(MutableDataClassProperties::class)
123-
class MutableDataClassPropertiesImporter
123+
class EnableMutableDataClassProperties
124124

125125
@ConfigurationProperties(prefix = "mutable")
126126
data class MutableDataClassProperties(

0 commit comments

Comments
 (0)